Docker Community Forums

Share and learn in the Docker community.

Way to specify default format system-wide

We are using labels, specified at container creation time via the “–labelFile” option, to document what stage of our CI pipeline the containers are for. This helps up identify which containers to kill when a CI job is stuck. Our developers SSH onto the server and use the docker CLI to kill these jobs or otherwise inspect them when Jenkins gets out of whack.

I found that I can set my user’s default “docker ps” format options (eg. https://container42.com/2016/03/27/docker-quicktip-7-psformat/) but I can find no way to set this for all users. Is there are way to do this?