docker--安装

    科技2022-08-12  121

    yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo yum install docker-ce systemctl start docker systemctl enable docker tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": [ "https://registry.docker-cn.com", "http://hub-mirror.c.163.com", "https://docker.mirrors.ustc.edu.cn" ] } EOF docker info systemctl daemon-reload systemctl restart docker Portainer作为容器的GUI管理 docker volume create portainer_data docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer 访问 IP:9000

    参考: https://www.jianshu.com/p/2dae7b13ce2f

    Processed: 0.011, SQL: 8