Skip to content

ysmaoui/docker-compose-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

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

About

example of docker-compose configurations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published