Skip to content

Instantly share code, notes, and snippets.

@skuppa
Last active August 29, 2015 14:17
Show Gist options
  • Save skuppa/ffbd47a4d8a9cbaf7544 to your computer and use it in GitHub Desktop.
Save skuppa/ffbd47a4d8a9cbaf7544 to your computer and use it in GitHub Desktop.
Docker Tips

Images

Delete untagged docker images

docker rmi $(docker images -q --filter "dangling=true")

Logs

Read the docker log

docker logs -f <imageId>

Read the docker logs from aws ec2 container as service

docker logs -f $(docker ps | grep <task-name> | awk '{print $1}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment