Run a new docker in foreground
Docker will immediately exit if it does not have something to run and keep it running
Example
docker run ubuntu:oracularWill immediately exit. This will keep running until I exit the shell
docker run -it ubuntu:oracular shTest Docker to keep running detached
- d, --detach=false Run container in background and print container ID
- -t, --tty=false Allocate a pseudo-TTY
docker run -td ubuntu:oracularAssign a Static IP to Docker Instance
First create a network in docker