<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                > 某個id與名稱都是唯一的(鏡像或者容器) #### 搜索遠程鏡像(倉庫搜索docker鏡像) ``` docker search [image-name] ``` #### 查看本地鏡像 ``` docker images # or docker image ls ``` #### 查看所有本地鏡像 > 這個里面主要是看狀態,up代表現正在運行,exit是退出的 ``` docker ps -a ``` #### 獲取鏡像詳細信息 ``` docker inspect {IMAGE_ID | IMAGE_NAME} ``` #### 刪除某個鏡像 ``` docker rmi [imageId] ``` > 擴展:強制刪除鏡像(不推薦) ``` docker rmi -f [imageId] ``` #### docker pull命令的完整寫法如下: > 拉取一個鏡像,需要指定Docker Registry的地址和端口號,默認是Docker Hub,還需要指定倉庫名和標簽,倉庫名和標簽唯一確定一個鏡像,而標簽是可能省略,如果省略,則默認使用latest作為標簽名,另外,倉庫名則由作者名和軟件名組成。 ``` docker pull [選項] [Docker Registry 地址[:端口號]/]倉庫名[:標簽] ``` #### 查看所有容器 > 如果要查看本地所有的容器,可以使用docker container ls命令或者 docker ps ``` docker container ls # or docker ps ``` #### 刪除容器 > 刪除某個容器 ``` # container_id表示容器id,通過docker ps可以看到容器id $ docker rm container_id ``` > 刪除所以容器() ``` docker rm $(docker ps -q) ``` > 刪除所有退出的容器 ``` docker container prune ``` #### 進入容器 ``` # 進入容器,container_id表示容器的id,command表示Linux命令,如/bin/bash docker exec -it container_id command ``` ``` 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 #查看docker容器變化 events Get real time events from the server #從docker服務獲取容器實時事件 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 #導入一個鏡像 info Display system-wide information #顯示系統信息 inspect Return low-level information on Docker objects #查看容器詳細信息 kill Kill one or more running containers #kill指定docker容器 load Load an image from a tar archive or STDIN #從一個tar包中加載一個鏡像(對應save) login Log in to a Docker registry #注冊或者登陸一個docker源服務器 logout Log out from a Docker registry #從當前Docker registry退出 logs Fetch the logs of a container #輸出當前容器日志信息 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鏡像源服務器拉取指定鏡像或者庫鏡像 push Push an image or a repository to a registry #推送指定鏡像或者庫鏡像至docker源服務器 rename Rename a container #重命名容器 restart Restart one or more containers #重啟運行的容器 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包(對應load) search Search the Docker Hub for images #在docker hub中搜索鏡像 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 #停止容器 tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE #給源中鏡像打標簽 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 #查看容器版本號 wait Block until one or more containers stop, then print their exit codes #截取容器停止時的退出狀態值 Run 'docker COMMAND --help' for more information on a command. #運行docker命令在幫助可以獲取更多信息 ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看