Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example for host-gateway doesn't work #19335

Closed
1 task done
rishid opened this issue Feb 7, 2024 · 3 comments
Closed
1 task done

Example for host-gateway doesn't work #19335

rishid opened this issue Feb 7, 2024 · 3 comments
Labels
area/cli Relates to the CLI client area/engine Issue affects Docker engine/daemon lifecycle/locked status/needs-more-info Need more information about the issue/PR

Comments

@rishid
Copy link

rishid commented Feb 7, 2024

Is this a docs issue?

  • My issue is about the documentation content or website

Type of issue

Information is incorrect

Description

The example command on the page is invalid. It needs to be a colon between internal and host.

docker run \
  --add-host host.docker.internal=host-gateway \
  curlimages/curl -s host.docker.internal:8000/hello

Location

https://docs.docker.com/engine/reference/commandline/container_run/#add-host

Suggestion

No response

@rishid rishid added the status/triage Needs triage label Feb 7, 2024
@dvdksn
Copy link
Collaborator

dvdksn commented Feb 7, 2024

Hello. The = separator is new in Docker Engine 25.0.0: docker/cli#4663

What version of Docker Engine are you using?

@dvdksn dvdksn added area/engine Issue affects Docker engine/daemon area/cli Relates to the CLI client status/needs-more-info Need more information about the issue/PR and removed status/triage Needs triage labels Feb 7, 2024
@rishid
Copy link
Author

rishid commented Feb 7, 2024

Ah, okay. Still using 24.0.5 - I will close as this is not an issue.

@rishid rishid closed this as completed Feb 7, 2024
@docker-robot
Copy link

docker-robot bot commented Apr 28, 2024

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked

@docker-robot docker-robot bot locked and limited conversation to collaborators Apr 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/cli Relates to the CLI client area/engine Issue affects Docker engine/daemon lifecycle/locked status/needs-more-info Need more information about the issue/PR
Projects
None yet
Development

No branches or pull requests

2 participants