Docker quick guide
Posted: Thu Mar 14, 2019 10:05 am
// Download linux debian
docker pull debian
// run debian interactively
docker run -it debian /bin/bash
// once inside debian, install mc (midnight commander)
apt-get update
apt-get install mc
mc
exit (to exit from debian)
// to save the docker image changes !!!
docker ps -a (check your image id)
docker commit id my_debian
docker images (to check your new image)
// list all images
docker images
// list all containers
docker container ls
// remove all docker images
docker system prune -a
// remove a container
docker stop container_id
docker rm container_id
docker pull debian
// run debian interactively
docker run -it debian /bin/bash
// once inside debian, install mc (midnight commander)
apt-get update
apt-get install mc
mc
exit (to exit from debian)
// to save the docker image changes !!!
docker ps -a (check your image id)
docker commit id my_debian
docker images (to check your new image)
// list all images
docker images
// list all containers
docker container ls
// remove all docker images
docker system prune -a
// remove a container
docker stop container_id
docker rm container_id