command for gettung container ids of all running containers

0 votes
I'm very new to docker swarm. I'm trying to get more details about my services. When i try doing

docker service ps service_name

I got a few details but it didn't show me the container ids.

Is it possible to get container ids?
Aug 24, 2018 in Docker by lina
• 8,100 points
18 views

1 answer to this question.

0 votes

Id returned by docker service ps my-ngx is the <task_id> To get the container id, you can use docker inspect -f "{{.Status.ContainerStatus.ContainerID}}" <task_id>

answered Aug 24, 2018 by Nilesh
• 6,900 points

Related Questions In Docker

+1 vote
1 answer

What is the default amount of memory provided for Windows Docker containers?

Docker for Windows containers by default get: On ...READ MORE

answered Oct 25, 2018 in Docker by Sophie may
• 9,530 points
31 views
0 votes
1 answer
0 votes
1 answer

How to run a docker command from inside the container?

You must have come across the /var/run/docker.sock file, ...READ MORE

answered Jun 28, 2018 in Docker by Sophie may
• 9,530 points
304 views
0 votes
1 answer

Docker : multiples linked containers for each customers

Using Docker (specifically Docker Compose) linking containers ...READ MORE

answered Jul 11, 2018 in Docker by Kalgi
• 2,620 points
25 views
0 votes
1 answer
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
982 views
+1 vote
4 answers

Docker Compose wait for container X before starting Y

You can use the depends_on feature was ...READ MORE

answered May 6 in Docker by Kunal
1,396 views
0 votes
1 answer

Access IP address of Couchbase container on Docker Swarm cluster

The property .NetworkSettings.Ports is a map, not a struct. ...READ MORE

answered Aug 24, 2018 in Docker by Nilesh
• 6,900 points
71 views