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

archlinux 安装 docker且配置加速 #10

Open
xiaozefeng opened this issue Jun 7, 2019 · 1 comment
Open

archlinux 安装 docker且配置加速 #10

xiaozefeng opened this issue Jun 7, 2019 · 1 comment

Comments

@xiaozefeng
Copy link
Owner

No description provided.

@xiaozefeng
Copy link
Owner Author

我们可以通过pacman 安装 docker

sudo pacman -S docker

安装完成后需要配置 docker 加速

sudo vim /etc/docker/daemon.json
{
  "registry-mirrors": [
     "https://xxxx.mirror.aliyuncs.com"
  ],
  "insecure-registries": [
     "registry.mirrors.aliyuncs.com"
  ] 
}

我这里使用的是阿里云的加速,xxx 可以替换成你自己的
什么?你还没有?赶紧百度一下

配置完成后需要执行

sudo systemctl daemon-reload
sudo systemctl restart docker

如果需要开机启动docker

sudo systemctl enable docker

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