BooookStore
1/29/2018 - 12:11 PM

Docker Command CheatSheet

// run docker container
docker run <container name>

// run docker detache mode
docker run -d <container name>

// run docker interactive mode
docker run -it <container name> /bin/bash

// run docker auto remove mode
docker run --rm <container name>

// run docker and bind port
docker run -p <host port>:<container port> <container name>