https://codeaholicguy.com/2018/08/30/dua-nghich-voi-docker-trong-5-phut/
https://docs.docker.com/docker-cloud/builds/push-images/
https://viblo.asia/p/docker-co-ban-tao-1-images-va-push-dockerhub-part-2-Az45bbR65xY
https://viblo.asia/p/docker-tao-docker-images-tu-dockerfile-3P0lPORvZox
mkdir new-docker-image
cd new-docker-image
vi Dockerfile
docker build . -t new-docker-image
export DOCKER_ID_USER="phongvh"
docker login
docker tag new-docker-image phongvh/new-docker-image
docker push phongvh/new-docker-image
docker commit -a "PhongVu phongvu@kambria.io" nodepython phongvh/pythonnodejs:latest
docker run --name nginx nginx
docker run --network host --device=/dev/ttyUSB0 -it ohmni_ros_melodic bash
docker run --name tbnode -v /dev:/dev -p 41234:41234 -d tb-node
docker ps -s
To detatch from the container without stopping it press CTRL+P followed by CTRL+Q
vi docker-compose.yml
docker-compose up
docker inspect -f '{{ .Mounts }}' ${container_id} or docker inspect --format='{{ .Mounts }}' cbb01e3ebfb1
docker ps -a --format '{{.Names}} {{.Size}}'
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.2.4
docker run --rm --name jenkins -e TZ=Asia/Bangkok -u root -p 8080:8080 -v jenkins-data:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock -v "$HOME":/home jenkinsci/blueocean
docker exec -it nginx bash
docker start nginx
docker volume create kambria
docker run --name nodepython -v /Users/admin/workspace/kambria:/kambria -it nikolaik/python-nodejs /bin/bash
docker stop $(docker ps -aq)
docker rm $(docker ps -aq)
docker rmi $(docker images -q)
docker image prune -a
docker rmi $(docker images -f dangling=true -q) // remove image with no tag
remove all images/containers before a specific date
docker image/container prune -a --filter "until=$(date +'%Y-%m-%dT%H:%M:%S' --date='-15 days')"