Docker CheatSheet
Last modified : 1 July, 2017
-
To pull an image
docker pull docker.io/fedora:latest
-
Run a docker container and mount a local directory inside the container. This lets me make sure the build scripts inside OxygenOS projects don’t pull any shenanigans. Yes! I know docker has holes.
docker run -v /usr:/usr:ro -v /bin:/bin:ro -v /bulk/raviprak/Code/Tracking/oxygenos/:/home/raviprak/Code/oxygenos -v /etc:/etc:ro -it fedora /usr/bin/bash
-
To save a container as an image
docker commit naughty_goodall raviprak:FedoraGitMaven
All content on this website is licensed as Creative Commons-Attribution-ShareAlike 4.0 License. Opinions expressed are solely my own.