docker installation start

docker install
yum install docker

start:
systemctl start/status docker

docker ps

start error solution:
use systemctl unmask flanneld.service to disable the flanneld service, docker.service, and find that docker started successfully.

Pull the image redis
docker pull docker.io/redis
docker pull mysql:5.7.21

Create and start the container
docker run -it 33c26d72bd74 /bin/sh /bin/bash

docker stop id Terminate the container
docker exec -it id /bin/sh Enter container

docker rm -f id delete container

Guess you like

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