私有仓库服务器

pull registry
> docker pull registry
运行私有仓库
> docker run -d -v /registry:/var/lib/registry -p 5000:5000 --restart=always --privileged=true --name registry registry
修改 daemon.json
> vim /etc/docker/daemon.json
{
    "insecure-registries":["192.168.1.161:5000"]
}

   192.168.1.161为仓库本机IP


使用方

修改 daemon.json
> vim /etc/docker/daemon.json
{
    "insecure-registries":["192.168.1.161:5000"]
}
创建TAG
> docker tag ${imageId} ${ip}:${port}/${imageName}
上传镜像
> docker push ${ip}:${port}/${imageName}

夜丿未央
7 声望0 粉丝