一、docker安装
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
参考:https://www.runoob.com/docker/ubuntu-docker-install.html
二、docker使用
1、镜像
docker images ls:
123@123-optiplex-7071:~$ sudo docker images ls
REPOSITORY TAG IMAGE ID CREATED SIZE
docker images:
123@123-optiplex-7071:~$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
centos 7 7e6257c9f8d8 6 weeks ago 203MB
hello-world latest bf756fb1ae65 8 months ago 13.3kB
2、容器
查看系统内全部处于运行状态的容器docker container ls:
123@123-optiplex-7071:~$ sudo docker container ls
CONTAINER ID IM