美文网首页
docker 基本命令

docker 基本命令

作者: markfork | 来源:发表于2020-11-09 11:05 被阅读0次

    章节

    • 常用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 常用操作命令 参考手册

    相关文章

      网友评论

          本文标题:docker 基本命令

          本文链接:https://www.haomeiwen.com/subject/pmvdnctx.html