Skip to content

Instantly share code, notes, and snippets.

View maxmercy's full-sized avatar

Maxime Mercy maxmercy

  • Barcelona
View GitHub Profile
@maxmercy
maxmercy / docker-compose-cheatsheet.sh
Created April 27, 2018 09:01 — forked from buonzz/docker-compose-cheatsheet.sh
docker-compose cheatsheet
$ docker-compose up -d # start containers in background
$ docker-compose kill # stop containers
$ docker-compose up -d --build # force rebuild of Dockerfiles
$ docker-compose rm # remove stopped containers
$ docker ps # see list of running containers
$ docker exec -ti [NAME] bash # ssh to the container
# list all images
docker images