Docker常用命令

    attach          Attach to a running container(连接到一个正在运行的容器)

    build            Build an image from a Dockerfile(根据Dockerfile构建一个镜像)

    commit        Create a new image from a container's changes(创建一个新镜像)

    cp                Copy files/folders between a container and the local filesystem(复制容器和本地文件系统之间的文件/文件夹)

    create         Create a new container(创建一个新容器)

    diff              Inspect changes on a container's filesystem(检查容器文件系统上的更改)

    events        Get real time events from the server(从服务器获取实时事件)

    exec           Run a command in a running container(在运行的容器中运行一个命令)

    export         Export a container's filesystem as a tar archive(将容器的文件系统导出为.tar格式文件)

    history        Show the history of an image(显示一个镜像的历史信息)

    images       List images(镜像列表)

    import        Import the contents from a tarball to create a filesystem image(从tarball导入内容创建文件系统镜像)

    info            Display system-wide information(显示系统信息)

    inspect       Return low-level information on a container, image or task(从容器、镜像或任务返回低级信息)

    kill              Kill one or more running container(杀死一个或多个运行容器)

    load           Load an image from a tar archive or STDIN(从tar压缩文件或STDIN中加载镜像)

    login          Log in to a Docker registry.(登录到docker hub)

    logout        Log out from a Docker registry.(从docker hub注销)

    logs           Fetch the logs of a container(获取一个容器的日志)

    network     Manage Docker networks(管理Docker网络)

    node          Manage Docker Swarm nodes(管理Docker集群节点)

    pause        Pause all processes within one or more containers(在一个或多个容器内暂停所有进程)

    port            List port mappings or a specific mapping for the container(容器的列表端口映射或特定映射

    ps              List containers(容器列表)

    pull            Pull an image or a repository from a registry(从docker hub中提取镜像或仓库)

    push          Push an image or a repository to a registry(将镜像或仓库推送到docker hub)

    rename     Rename a container(重命名一个容器)

    restart       Restart a container(重启一个容器)

    rm             Remove one or more containers(删除一个或多个容器)

    rmi            Remove one or more images(删除一个或多个镜像)

    run            Run a command in a new container(在一个新容器中运行命令)

    save         Save one or more images to a tar archive (streamed to STDOUT by default)(将一个或多个镜像保存到tar存档文件                                                                                                                                                   (默认情况下将其流到STDOUT))

    search      Search the Docker Hub for images(在Docker Hub搜索镜像)

    service      Manage Docker services(管理Docker服务

    start           Start one or more stopped containers(启动一个或多个停止的容器

    stats          Display a live stream of container(s) resource usage statistics(显示容器资源使用统计的实时流

    stop           Stop one or more running containers(停止一个或多个运行的容器

    swarm       Manage Docker Swarm(管理Docker集群)

    tag            Tag an image into a repository(标记镜像的仓库)

    top            Display the running processes of a container(显示一个容器的运行过程

    unpause   Unpause all processes within one or more containers(暂停在一个或多个容器内的所有进程

    update      Update configuration of one or more containers(更新一个或多个容器的配置

    version     Show the Docker version information(显示Docker版本信息

    volume     Manage Docker volumes(管理docker数据卷)

    wait          Block until a container stops, then print its exit code(等待一个容器停止,然后打印它的退出代码
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值