Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker installation #62

Open
ysl2 opened this issue Jun 10, 2024 · 1 comment
Open

Docker installation #62

ysl2 opened this issue Jun 10, 2024 · 1 comment

Comments

@ysl2
Copy link
Owner

ysl2 commented Jun 10, 2024

  1. Install

    sudo apt install -y docker.io
    
  2. Set mirror

    阿里云加速器(点击管理控制台 -> 登录账号(淘宝账号) -> 左侧镜像工具 -> 镜像加速器 -> 复制加速器地址)

    sudo mkdir -p /etc/docker
    sudo tee /etc/docker/daemon.json <<-'EOF'
    {
      "registry-mirrors": ["自己的阿里云镜像链接"]
    }
    EOF
    sudo systemctl daemon-reload
    sudo systemctl restart docker
    
  3. Without sudo

    # Create a Docker group if it doesn't already exist:
    sudo groupadd docker
    # Add your user to the Docker group:
    sudo usermod -aG docker $USER
    
@ysl2
Copy link
Owner Author

ysl2 commented Jul 30, 2024

Mac: Install docker desktop from official site.

Mac uninstall:

# Ref: https://github.com/docker/for-mac/issues/7046#issuecomment-2579215790
P brew uninstall --cask docker --force --verbose --debug
P brew uninstall --formula docker --force --verbose --debug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant