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
标签:http,buster,deb,使用,docker,main,debian 来源: https://www.cnblogs.com/wllwqdeai/p/15921031.html