没有联网的docker服务器在启动rancher/agent的时候一直不能初始化

rancher version: 1.6.14docker info : [code]Containers: 1 Running: 1 Paused: 0 Stopped: 0 Images: 30 Server Version: 1.12.6 Storage Driver: devicemapper Pool Name: docker-8:1-394436-pool Pool Blocksize: 65.54 kB Base Device Size: 10.74 GB Backing Filesystem: xfs Data file: /dev/loop0 Metadata file: /dev/loop1 Data Space Used: 7.657 GB Data Space Total: 107.4 GB Data Space Available: 42.51 GB Metadata Space Used: 10.56 MB Metadata Space Total: 2.147 GB Metadata Space Available: 2.137 GB Thin Pool Minimum Free Space: 10.74 GB Udev Sync Supported: true Deferred Removal Enabled: false Deferred Deletion Enabled: false Deferred Deleted Device Count: 0 Data loop file: /var/lib/docker/devicemapper/devicemapper/data WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device. Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata Library Version: 1.02.135-RHEL7 (2016-09-28) Logging Driver: journald Cgroup Driver: systemd Plugins: Volume: local Network: null host bridge overlay Swarm: inactive Runtimes: docker-runc runc Default Runtime: docker-runc Security Options: seccomp Kernel Version: 3.10.0-327.4.5.el7.x86_64 Operating System: CentOS Linux 7 (Core) OSType: linux Architecture: x86_64 Number of Docker Hooks: 2 CPUs: 4 Total Memory: 15.51 GiB Name: p0-ylzone-ylsc-app01 ID: CM64:ERE4:FD6F:RKLD:CHOR:H7YO:KMXE:R3WR:EAGG:NL5U:LOXM:GEJC Docker Root Dir: /var/lib/docker Debug Mode (client): false Debug Mode (server): false Registry: https://index.docker.io/v1/ WARNING: bridge-nf-call-iptables is disabled WARNING: bridge-nf-call-ip6tables is disabled Insecure Registries: 127.0.0.0/8 Registries: docker.io (secure)[/code]  node节点不能访问公网,我提前把镜像通过内部registry传输到这个docker服务器上,然后名称也保持了原来的镜像名称和tag,把添加主机里面生成的命令复制到这个服务器执行一直不能启动其他容器(比如,healtchcheck), 看了一下rancher/agent的log,发现一直在pull镜像,可以这个镜像已经有了啊?   [code]time="2018-03-07T07:26:33Z" level=error msg="Error processing event" err="Image [index.docker.io/rancher/scheduler:v0.8.3] failed to pull: Pulling repository docker.io/rancher/scheduler" eventId=7dc6f6ca-0b39-4e01-9927-8679848f90da eventName=storage.image.activate resourceId=1ispm386 [/code]
已邀请:

hongxiaolu

赞同来自: diablowu

把所有镜像添加一个docker.io 前缀,比如docker.io/rancher/agent/v1.2.9

王伟军 - 分享技术,分享快乐

另外:你的docker info信息中有告警信息:
WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.
 
请参考:
《CentOS下修改Devicemapper存储驱动为Direct-lvm模式》
https://forums.cnrancher.com/article/19  
 
以及以下告警:
[size=16]WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled[/size]

要回复问题请先登录注册