Docker Setup
in Co-De with 65 comments

Docker Setup

in Co-De with 65 comments

Add Ali Repo

https://cr.console.aliyun.com/cn-hangzhou/repositories

    sudo mkdir -p /etc/docker
    sudo tee /etc/docker/daemon.json <<-'EOF' 
    { "registry-mirrors": ["https://**********.mirror.aliyuncs.com"] } 
    EOF 
    sudo service docker restart

Add docker Group

    sudo groupadd docker     #添加docker用户组
    sudo gpasswd -a $USER docker     #将登陆用户加入到docker用户组中
    newgrp docker     #更新用户组
    sudo service docker restart
    docker ps    #测试docker命令是否可以使用sudo正常使用
Comments are closed.