Format:
docker run image_name:tag_name "command
docker run ubuntu cat /etc/*release*
If you don't specify any tag, in that case docker assumes the you want to run/pull the latest tag.
docker run ubuntu:17.10 cat /etc/*release*
docker run -d ubuntu sleep 100
docker attach "container id"
docker inspect "container id"
(to find the internal IP of the docker container)
docker run -p host_port:container_port image_name
docker run -p 8080:8080 ubuntu
docker run -v host_dir:container_dir -u username
docker run -v /root/my_jenkins_data:/var/jenkings_home -u root jenkins
docker run -p 8080:8080 -v /root/my_jenkins_data:/var/jenkings_home -u root jenkins
DOCKER FILE
Structure of docker fike
| INSTRUCTION | ARGUMENT |