Stay hungry,Stay foolish

0%

前置知识

首先需要了解和清楚Docker是Client-Server架构

  • 服务端守护进程dockerd
  • REST API 程序和守护进程的桥梁
  • CLI(command line interface)客户端docker

CLI就是通过REST API告诉Server(守护进程)做什么

Client Server不一定是同一主机

阅读全文 »

拉取nginx image

1
2
3
4
5
6
7
xiaomao@jp-vps:~$docker pull nginx

xiaomao@jp-vps:~$docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest 775349758637 13 days ago 64.2MB
busybox latest 020584afccce 2 weeks ago 1.22MB
nginx latest 540a289bab6c 3 weeks ago 126MB
阅读全文 »

Docker registry拉取imagebusybox到本地系统

1
2
3
4
5
xiaomao@jp-vps:~$docker pull busybox
xiaomao@jp-vps:~$
xiaomao@jp-vps:~$docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
busybox latest 020584afccce 12 days ago 1.22MB
阅读全文 »

Docker Engine - Community 支持以下版本的64bitUbuntu

1
2
3
4
* Disco 19.04
* Cosmic 18.10
* Bionic 18.04 (LTS)
* Xenial 16.04 (LTS)

删除旧版本(如果有)

1
apt-get remove docker docker-engine docker.io containerd runc
阅读全文 »