在docker swarm中创建服务时获取不清楚的消息

时间:2019-03-22 07:00:09

标签: docker-swarm

群设置:

[root@ip-1-3-2-21 ~]# docker node ls
ID                           HOSTNAME                                      STATUS  AVAILABILITY  MANAGER STATUS
p7urp7sae9hz2qcptixj3ltoj    ip-1-3-2-21.ap-south-1.compute.internal   Ready   Active
qaotphl32hv1u5ya8p1bkv5td *  ip-172-31-31-218.ap-south-1.compute.internal  Ready   Active        Leader
u4smg81dmq45wm3a32f00qrak    ip-172-31-6-118                               Ready   Active

服务与错误:

[root@ip-1-3-2-21 ~]# docker service create --name testservice \
> -- network newoverlay \
> -- replicas 3 \
> alpine ps aux
unable to pin image network to digest: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!doctype html>\n<html class=\"no-js\" lang=\"\">\n    <head>\n        <meta charset=\"utf-8\">\n        <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"><script type=\"text/javascript\">window.NREUM||(NREUM={}),__nr_require=function(e,n,t){function r(t){if(!n[t]){var o=n[t]={exports:{}};e[t][0].call(o.exports,function(n){var o=e[t][1][n];return r(o||n)},o,o.exports)}return n[t].exports}if(\"function\

一旦执行了命令,它将错误地创建服务: (图片和副本数量错误)

[root@ip-1-3-2-21 ~]# docker service ls
ID            NAME         MODE        REPLICAS  IMAGE
oc3384iun9r4  testservice  replicated  0/1       network

Docker版本:

[root@ip-1-3-2-21 ~]# docker --version
Docker version 1.13.1, build 8633870/1.13.1

该如何解决?

0 个答案:

没有答案