ysl2 / .dotfiles

My dotfiles
2 stars 0 forks source link

Docker installation #62

Open ysl2 opened 5 months ago

ysl2 commented 5 months ago
  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 commented 3 months ago

Mac: Install docker desktop from official site.