A cheatsheet with basic docker and docker-compose commands
docker exec -it <nam> /bin/bashattach interactive tty to the running image
docker run <name> --rmremove after creation
docker run --rm --name test_container \
-e FOO=1 \
-p "8080:80" \
-v ".:/srv/app" \
namespace/image_name:versiondocker-compose up [service]Starts a service or all servicesdocker-compose psLists all running or paused servicesdocker-compose exec [service] /bin/bashExecutes a command on a running servicedocker-compose run --rm [service] echo fooExecutes a single command on a service
create a docker-compose.yml