美文网首页
docker 使用总结

docker 使用总结

作者: 王滕辉 | 来源:发表于2017-04-07 00:23 被阅读14次

    安装

    安装
    $ yum -y install docker
    验证
    $ docker --version

    概念

    docker三大核心概念:
    镜像(Image)
    容器(Container)
    仓库(Repository)

    镜像使用

    docker 镜像命令有以下几个:
    images(查看镜像)
    search(查询)
    pull(拉取)
    rmi(删除镜像)
    run(运行)
    commit(创建)
    rm(删除镜像)
    save(保存)
    load(加载)
    push(上传)

    容器使用

    docker容器命令有以下几个:
    create(新建)
    start(启动)
    run(启动)
    stop(终止)
    restart(重启)
    ps(产看)
    attach(进入)
    exec(执行不进入)
    nsenter(连接)
    rm(删除)
    export(导出)
    import(导入)

    仓库使用

    docker仓库命令有以下几个:
    search(查找)
    pull(拉取)
    images(查看)
    push(上传)

    docker仓库工具:
    docker pool(http://dockerpool.com

    相关文章

      网友评论

          本文标题:docker 使用总结

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