Docker How To Run A Container
Running a Docker container is really easy.
Use this command to run a container ( also creates it ):
docker run -it ubuntu
Run a container detached:
docker run -tid ubuntu
Use this to run a container and specify a command:
docker run -it ubuntu bash
You can specify a name for the container like this:
docker run -tid --name smelly-hippo ubuntu
Table of options:
-d | run detached in the background |
-i | keep STDIN open |
-t | allocate a pseudo-TTY |