Skip to content

Instantly share code, notes, and snippets.

@bowin
Last active October 28, 2017 07:42
Show Gist options
  • Save bowin/dfd684287eeeab53ef769304a069501e to your computer and use it in GitHub Desktop.
Save bowin/dfd684287eeeab53ef769304a069501e to your computer and use it in GitHub Desktop.
自建docker registry

启动registry服务

docker run -d -p 5000:5000 --name registry registry

pull-tag-push到registry

docker pull ubuntu
docker tag ubuntu domain/ubuntu
docker push domain/ubuntu

客户端修改 /etc/docker/daemon.json

{
  "insecure-registries" : ["domain:5000"]
}
$ service docker restart

客户端pull

docker pull domain/ubuntu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment