example of docker-compose configurations
add the following:
stdin_open: true
tty: true
stdin_open
corresponds todocker run -i ...
tty
corresponds todocker run -t ...
Run in a terminal:
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_name_or_id