docker使用

1、docker系统:Debian GNU/Linux 11 cat /etc/issue 

2、apt-get更改国内安装源

deb http://mirrors.ustc.edu.cn/debian/ buster main
deb-src http://mirrors.ustc.edu.cn/debian/ buster main

deb http://security.debian.org/debian-security buster/updates main
deb-src http://security.debian.org/debian-security buster/updates main

# buster-updates, previously known as 'volatile'
deb http://mirrors.ustc.edu.cn/debian/ buster-updates main
deb-src http://mirrors.ustc.edu.cn/debian/ buster-updates main

deb http://mirrors.ustc.edu.cn/debian/ buster-backports main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian/ buster-backports main non-free contrib

3、列出镜像、容器

docker images
docker ps -a
docker ps -al

3、启动、停止一个docker的容器

docker container stop 容器名或容器id
docker container start 容器名或容器id

4、进入已启动容器bash界面

docker exec -it  容器id /bin/bash

 

上一篇:浏览器将html代码渲染成页面流程简单介绍


下一篇:第三届CSHIA智能家居系统工程师同学会上海成功举办