• basic commands

      1. docker info
      2. docker pull
      3. docker images
      4. docker rmi
      5. docker rm
      6. docker history
      7. docker run
      8. docker build
      9. # for running container,docker ps
      10. docker commit container_hash tag:version
      11. docker ps
      12. docker exec -it container_hash /bin/bash
      13. docker save -o archive.tar docker_img_hash
      14. docker load -i archive.tar
      15. docker run -it -v local_dir:docker_dir docker_img_hash /bin/bash
    • docker hub https://hub.docker.com/

    • docker 变量
      • ENV DEBIAN_FRONTEND noninteractive
      • ARG BASE_PATH=/opt/data1/dw_dm
      • RUN
      • install package in docker env: apt-get update first!!!
    • dockerfile
      1. FROM ubuntu
      2. RUN apt-get update && apt-get install vim git tree gcc -y
      1. FROM gcc
      2. RUN apt-get update && apt-get install vim git tree -y