This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .rb extension used only for the coloring purpose. | |
# run docker container from image | |
# if image is not present, it will pull the image and run the container. | |
docker run nginx | |
# show running container | |
docker ps | |
# to stop the docker container |