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,220 points
874 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
• 7,060 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
• 10,620 points
782 views
0 votes
1 answer
0 votes
1 answer

How to remove all docker containers in a single command?

Hi@akhtar, I don't think there are any pre ...READ MORE

answered Apr 27, 2020 in Docker by MD
• 95,460 points
1,098 views
+2 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
3,925 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 7, 2019 in Docker by Kunal
11,228 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
• 7,060 points
1,009 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP