I know I can get the full container id using docker inspect --format "{{.ID}}" [container name]
I want to have the full container ID during container listing, not scripting looping one by one.
There is no way out other than scripting it myself ?
I know I can get the full container id using docker inspect --format "{{.ID}}" [container name]
I want to have the full container ID during container listing, not scripting looping one by one.
There is no way out other than scripting it myself ?
2
Answers
You can use
--no-trunc
(Don’t truncate output).docker ps --no-trunc
If you want the ID only, use
docker ps --no-trunc --format "{{.ID}}"