Depends what you’re trying to do. If you’re running with --net=host
, localhost
should work fine. If you’re using default networking, use the static IP 172.17.0.1
. I suspect neither will behave quite the same as those domains.
More Related Contents:
- Locating data volumes in Docker Desktop (Windows)
- Docker windows container memory limit
- Can Windows containers be hosted on Linux?
- Docker cannot start on Windows
- standard_init_linux.go:190: exec user process caused “no such file or directory” – Docker
- How can I change the location of docker images when using Docker Desktop on WSL2 with Windows 10 Home?
- How to access the VM created by docker’s HyperKit?
- What does Docker use to host/run web applications?
- How to get a Docker container’s IP address from the host
- How to deal with persistent storage (e.g. databases) in Docker
- Error “The input device is not a TTY”
- Dockerfile if else condition with external arguments
- Is it ok to run docker from inside docker?
- Provide static IP to docker containers via docker-compose
- Access host database from a docker container
- docker unauthorized: authentication required – upon push with successful login
- What are Docker image “layers”?
- Where can I find the sha256 code of a docker image?
- Elasticsearch docker container in non-prod mode to eliminate vm.max_map_count=262144 requirement
- Mounts denied. The paths … are not shared from OS X and are not known to Docker
- Can anyone explain docker.sock
- Connect docker python to SQL server with pyodbc
- How to delete images from a private docker registry?
- Is it possible to start a stopped container from another container
- Docker Compose keep container running
- Docker unknown shorthand flag: ‘a’ in -aq)
- How to connect to local MySQL server through Docker?
- Differences Between Dockerfile Instructions in Shell and Exec Form
- Can I specify host directory to mount from Dockerfile
- What is meant by shared kernel in Docker?