Closed1
Assign a static IP to a docker container
Assign static IP to Docker container - Stack Overflow
docker exec -i -t [container-id] bash
in the container
hostname -i
or just run
for s in `docker-compose ps -q`; do echo ip of `docker inspect -f "{{.Name}}" $s` is `docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $s`; done
このスクラップは2023/09/18にクローズされました