Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 452 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 452 Bytes

docker-compose-examples

example of docker-compose configurations

Tips:

Enable interactive shell for a container

add the following:

stdin_open: true
tty: true
  • stdin_open corresponds to docker run -i ...
  • tty corresponds to docker run -t ...

Get IP address of a running container:

Run in a terminal:

    docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_name_or_id