Posts

Showing posts with the label docker build

Introduction to Docker Series

We have written a series of posts introducing the basics of docker. We focus on working with docker and creating image. We did not cover scalable deployment using docker. Please refer to the following post: Introduction to Docker - Day 1 Introduction to Docker - Day 2 Introduction to Docker - Day 3 Introduction to Docker - Day 4 Introduction to Docker Day 5 Introduction to Docker Day 6 (Final) ***

Docker Command Cheat Sheet

Listed below is a list of docker command: You can also access this file from Github at https://github.com/technozeal/DockerCheatSheet Test Run docker run hello-world Docker Pull # Download docker image without running it docker pull <image_name> Example: docker pull alpine docker pull hello-world docker pull ubuntu docker pull centos docker pull python docker pull python:3.7-slim Docker Run # Run docker image docker run <image_name> docker run <image_name> <command> docker run -d --name <container_name> <image_name> #-d is to detached from terminal and run in the background, suitable for server #--name name the container docker run -d --name <container_name> -p 80:80 <image_name> <command> #-p map the network port from the host to the container docker run -it <image_name> <command> # -i is for interactive session # -t is to create a tty for user interaction # usually use -it docker ...