Docker cheatsheet

docker create

Remove

--rm removes the container after it finishes running

Interaction

-i attach shell - if you want to start the shell within container

Pseudo tty

-t creates tty with container

Publish

-p <hostPort>:<containerPort> expose container port to host machine