• 基于go语言

  • 对于系统内核来说,一个docker只是一个进程

  • 概念

    • 镜像 - AUFS文件系统
    • 仓库 - 集中存放镜像的地方
    • 容器 - 镜像运行后的进程
  • 常用命令

    • systemctl start/enable/restart/stop docker
    • docker stop/start containerId
    • docker ps
    • docker cp <file> <容器id>:<容器目录></file>
    • docker exec -it <容器名/id> bash
    • docker inspect <容器名/id>
  • tips

    • 容器配置文件路径 /var/lib/docker/containers/[hash_of_the_container]/hostconfig.json