如何使用 docker 运行 debian 10
首先获取镜像
docker pull debian:10
10: Pulling from library/debian
c4cc477c22ba: Pull complete
Digest: sha256:5b57f8c365c40fde437d53b953c436995525be7c481eb0128b1cbf3b49b0df18
Status: Downloaded newer image for debian:10
docker.io/library/debian:10
通过 -i -t 进行运行
docker run -it debian:10 /bin/bash
root@bc28fa6cb312:/# cat /etc/issue
Debian GNU/Linux 10 \n \l
--it 什么意思
- -i 交互式操作
- -t 终端