docker基础操作
- 查询docker版本号
$ sudo docker version

- 查询镜像
$ sudo docker search <string>
镜像全名格式如下: <username>/<repository>

- 下载镜像
$ sudo docker pull 镜像全名

- 创建并启动容器
$ sudo docker run 镜像全名 echo "hello world!"

- 修改容器
$ sudo docker run 镜像全名 apt-get install -y ping

- 查询镜像信息
$ sudo docker ps -l

- 创建新镜像
$ sudo docker commit <CONTAINER_ID> <IMAGE_name>
- 使用新镜像
$ sudo docker <command> <IMAGE_name> <need_command>

- 使用查询容器信息
$ sudo docker inspect <CONTAINER_ID>

- 查询本地镜像状况
$ sudo docker images

- 上传镜像
$ sudo docker push <REPOSITORY_name>

最后要输入github账号密码
浙公网安备 33010602011771号