zoukankan      html  css  js  c++  java
  • docker 常用命令

    1、删除本地镜像

    sudo docker rmi luckypt/myalice

    2、提交镜像到docker hub

    step1——找到本地镜像的ID:docker images

    step2——登陆Hub:docker login --username=username --password=password --email=email

    step3——tag:docker tag <imageID> <namespace>/<image name>:<version tag eg latest>

    step4——push镜像:docker push <namespace>/<image name>

    具体步骤:

    mi@1:~/file/docker$ sudo docker images
    REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
    all_right           latest              f23b80fc240b        2 weeks ago         3.51 GB
    ========================================================================

    mi@1:~/file/docker$ sudo docker login --username=luckypt --password=********* --email=806801463@qq.com
    Flag --email has been deprecated, will be removed in 1.14.
    ========================================================================

    sudo docker tag f23b80fc240b luckypt/myalice:latest

    ========================================================================

    sudo docker push luckypt/myalice:latest

    3、 搜索镜像

    sudo docker search ubuntu

    4、拉取镜像

    sudo docker pull ubuntu

    5、登录container

    docker exec -it 44f84db45d6d bash

    6、查看所有容器

    docker ps

  • 相关阅读:
    禁止logback输出状态信息
    Idea导出可运行Jar包
    K均值算法
    [转]香农信息论与毒药称球问题
    ajax跨域请求
    Python函数的静态变量
    学倦乱语
    [转]被当做狗和鸡来驱赶的百姓
    numpy文件读写的三对函数
    认真把事办砸是一种能力
  • 原文地址:https://www.cnblogs.com/tengpan-cn/p/7269988.html
Copyright © 2011-2022 走看看