Deploy web projects with docker under Ubuntu 16.04

Conceptual please click

Step 1: Update apt- get update
Step 2: Install the environment
    apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    software -properties-common 
docker has been installed here

After the installation is complete, the docker service will be started by default. If it is not started, it will be started as a normal service.

docker pull ubuntu      #The latest docker image will be pulled by default
docker run -it --rm ubuntu bash #Start     interactive docker, delete after running
docker image ls #List images in the current environment docker 
images #List images    in the current environment
docker image rm ididididid #install       id delete image

Operation container

 

 

To be continued

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324843490&siteId=291194637