章节
- 常用docker 命令
1. 查看 docker info
docker info
2. 进入容器交互式内部
docker container exec -it [container_id] /bin/bash
3. 解决 apt-get 源在国外的问题
mv /etc/apt/sources.list /etc/apt/sources.list.bak && \
echo "deb http://mirrors.163.com/debian/ jessie main non-free contrib" >/etc/apt/sources.list && \
echo "deb http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list && \
echo "deb-src http://mirrors.163.com/debian/ jessie main non-free contrib" >>/etc/apt/sources.list && \
echo "deb-src http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list
4. 常用docker 操作命令
docker 常用操作命令 参考手册
网友评论