Skip to content

Instantly share code, notes, and snippets.

@juddey
Last active August 8, 2020 07:36
Show Gist options
  • Save juddey/a5a3f510a1ed7a4954354d12923f0b68 to your computer and use it in GitHub Desktop.
Save juddey/a5a3f510a1ed7a4954354d12923f0b68 to your computer and use it in GitHub Desktop.
Docker Stuff
// Builds according to dockerfile in directory
docker build $HOME/Desktop/dockerfile-two
// Removes all exited containers
docker rm $(docker ps --filter "status=exited" -q)
// Tags an image
docker tag 8ab71b445b80 juddey/chapel-ci-one:latest
// Removes all untagged images
docker rmi $(docker images | grep "^<none>" | awk "{print $3}")
docker run --name anything -it --privileged juddey/chapel-ci-one bash
docker start anything // starts container
docker attach anything //attaches to container
// boots the redis container
docker run -d --rm -p 6379:6379 d975eaec5f68
/opt/emulator/emulator @ci-5X --no-audio --no-window 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment