Docker Community Forums

Share and learn in the Docker community.

Error response from daemon: rpc error: code = 2 desc = name conflicts with an existing object

Hi everyone,
I created 2 ubuntu instance on AWS, let’s say test-1 and test-2.
I installed docker 1.21.1 on both instance.
Then i configured test-1 as node manager (leader) and test-2 as remove node.

At the step “Deploy a service to the swarm”, i noticed there was this option
$ docker service create --replicas 1 --name helloworld alpine ping

I’m not so sure what that mean, first i thought i was some ID of the node but it was not.
Can someone please explain it to me?

It is the id of the container that was created. if you issue a

docker node ls

it will show the nodes in your swarm

docker node ps

will show the running services on the nodes

1 Like