Docker swarm does not access ports?

0 like 0 dislike
118 views
Hello!

That's quite a blunt or is a reason to study all the same, kubernetes...

Raise svarm

docker swarm init --advertise-addr 10.92.60.151

Start the service in the docks Docker

docker create --name service --registry publish published=5000,target=5000 registry:2


curl http://localhost:5000/v2/ curl: (7) Failed to connect to localhost port 5000: Connection refused

The same goes for 10.92.60.151.

docker service ls ID NAME MODE PORTS IMAGE REPLICAS 04u3wf9g0oy9 registry replicated registry 1/1:2 *:5000->5000/tcp


Diatribe Ubuntu 18.04. Tasted like regular Docker, and that is currently installed from doserovski turnips.

Ideally, you want to gather a cluster of 3 managers to get fault tolerance...
by | 118 views

1 Answer

0 like 0 dislike
The answer is found, killed 5 hours. Decided to re-new path to roll. I think if something goes wrong. And so it was.
To change hostname in Ubuntu all the docks it is written to edit the file /etc/cloud/cloud.cfg in a particular place
preserve_hostname: false
to change to true.
Then all ceases to work. Not thoroughly dealt with this, but to solve the problem is enough :)...
by

Related questions

0 like 0 dislike
1 answer
asked Aug 3, 2019 by kiranananda
0 like 0 dislike
1 answer
asked Jul 11, 2019 by kiranananda
0 like 0 dislike
1 answer
asked Jul 3, 2019 by kiranananda
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,796 users