yum -y install gcc
yum -y install gcc-c++
sudo yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
①安装所需的软件包
sudo yum install -y yum-utils
②设置仓库
//官方的地址
sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
//阿里云
sudo yum-config-manager \
--add-repo \
http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
//清华
sudo yum-config-manager \
--add-repo \
https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/docker-ce.repo
③安装Docker Engine-Community
sudo yum install docker-ce docker-ce-cli containerd.io
④启动docker
sudo systemctl start docker
⑤验证是否成功安装docker
sudo docker run hello-world
⑥开机自启docker
systemctl enable docker
sudo systemctl start docker
docker pull doccano/doccano
docker container create --name doccano \
-e "ADMIN_USERNAME=admin" \
-e "[email protected]" \
-e "ADMIN_PASSWORD=password" \
-v doccano-db:/data \ -p 8000:8000 doccano/doccano
docker container start doccano
//虚拟机 IP:8000
192.168.001.001:8000
docker container stop doccano -t 5