Docker Stuffs
- docker images -> Lists docker images
- docker run -itd –name kek alpine alpine:latest ash ( d is daemon mode .
- docker exec -it alpine ash ( it -> interactive tty .
- docker save ubuntu > ubuntu_save.tar -> saves the container (doesnt saves the insides and directory structor.
- docker export ubuntu > ubuntu_export.tar -> saves container with directory structure
- docker stop ubuntu
- docker rm ubuntu
- docker rmi alpine:latest
- docker load < ubuntu_save.tar
-
cat ubuntu_export.tar docker import - alpine:latest
docker run -itd –name ubuntu ubuntu:18.04 /bin/bash docker exec -it ubuntu bash