Last active
August 8, 2020 07:36
-
-
Save juddey/a5a3f510a1ed7a4954354d12923f0b68 to your computer and use it in GitHub Desktop.
Docker Stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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