Skip to content

Instantly share code, notes, and snippets.

@hsaputra
Created March 19, 2019 15:59
Show Gist options
  • Save hsaputra/afcabb8b5f38654a976fb05e82716c73 to your computer and use it in GitHub Desktop.
Save hsaputra/afcabb8b5f38654a976fb05e82716c73 to your computer and use it in GitHub Desktop.
Docker - generate a list of container ID from the docker ps command
# generate a list of container ID from the docker ps command
!docker ps -a | awk '{print $1}' | tail -n +2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment