kubectl create secret docker-registry myregistrykey --docker-server=DOCKER_REGISTRY_SERVER --docker-username=DOCKER_USER --docker-password=DOCKER_PASSWORD --docker-email=DOCKER_EMAIL 1. [root@k8s-master ~]# kubectl create secret docker-registry myregistrykey --docker-server=hub.test.com --docker...
执行[centos-master]:docker build -t registry.evehicle.cn/httpd . 命令制作名为”registry.evehicle.cn/httpd”的镜像(注意此处的点必须要有,并且其意义代表当前目录下的Dockerfile文件) 3.将制作好的镜像上传到私有库 docker push registry.evehicle.cn/httpd 1. 4.编写启动apache服务的yaml文件 [centos-mast...
[centos-master]:kubectl create secret docker-registry registrykey --docker-server=registry.evehicle.cn --docker-username=docker --docker-password=docker --docker-email=lienhua@zhongchuangsanyou.com[centos-master]:kubectl get secretNAME TYPE DATA AGE registrykey kubernetes.io/dockercfg 1 6s 1 2 3...
安装docker环境,并使docker开机自启 # yum install -y yum-utils device-mapper-persistent-data lvm2 # yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo # yum makecache fast # yum install docker-ce -y ...