§ Building stuff with Docker
docker build ..
- File contains shell stuff to run in
can have newlines with backslash ala shell script.
docker run to run something at an image SHA (ie, not in a running container). Useful to debug. protip:
docker run /bin/bash to get a shell.
docker exec to run something in a container.
- to delete an image:
docker image ls,
docker rmi -f
- docker prune all unused stuff:
docker system prune -a
docker login to login
docker build -t siddudruid/coolname . to name a docker image.
docker push siddudruid/coolname to push to docker hub.
docker pull siddudruid/coolname to pull from docker hub.