<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      Docker 常用命令

      docker run -p 80:80 nginx

      input docker will get the command in the console

      sage: docker [OPTIONS] COMMAND

      A self-sufficient runtime for containers


      Management Commands:
      app* Docker Application (Docker Inc., v0.8.0)
      builder Manage builds
      buildx* Build with BuildKit (Docker Inc., v0.3.1-tp-docker)
      config Manage Docker configs
      container Manage containers
      context Manage contexts
      image Manage images
      manifest Manage Docker image manifests and manifest lists
      mutagen* Synchronize files with Docker Desktop (Docker Inc., testing)
      network Manage networks
      node Manage Swarm nodes
      plugin Manage plugins
      secret Manage Docker secrets
      service Manage services
      stack Manage Docker stacks
      swarm Manage Swarm
      system Manage Docker
      trust Manage trust on Docker images
      volume Manage volumes

      Commands:
      attach Attach local standard input, output, and error streams to a running container
      build Build an image from a 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 to files or directories 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
      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
      load Load an image from a tar archive or STDIN
      login Log in to a Docker registry
      logout Log out from a 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
      push Push an image or a repository to a registry
      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)
      search Search the Docker Hub for images
      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

       

      Docker幫助命令:

      docker info

       

      鏡像命令:

      dokcer images

      dokcer imges -a 

       

       

      docker rmi -f

      docker rmi -f $(docker images -qa)

       

      Docker 容器命令:

      docker pull centos

       

      Docker files:

      ************************************************

      docker ps -a  顯示所有的容器,包括未運行的。

       

       

       

      docker stop 6efab790f83e  停止一個運行中的容器

      docker kill :殺掉一個運行中的容器。
       cd /var/btn/deploy
       ./deploy_docker.sh var-api 20001

      cat deploy_docker.sh

      startTime=`date +%s`
      echo "$1開始部署"
      #基礎(chǔ)參數(shù)
      dockername=$1
      imagename="dockerdev.gwmfc.com/btn/btn-btfp/$dockername"
      version="latest"
      imagefullname="$imagename:$version"
      port=$2

      #篩選出容器id
      cid=$(docker ps | grep $dockername| awk '{print $1}')
      #如果鏡像啟動,id存在,關(guān)閉并刪除容器和鏡像
      echo "【第一步:關(guān)閉并刪除容器和鏡像】"
      if [ x"$cid" != x ];then
      docker kill $cid
      docker rm $cid
      docker rmi $(docker images | grep $imagename| awk '{print $3}')
      fi

      #如果鏡像未啟動,d不存在,根據(jù)容器id刪除,最后查找鏡像并刪除
      if [ x"$cid" = x ];then
      cid=$(docker ps -a | grep $dockername| awk '{print $1}')
      if [ x"$cid" != x ];then
      echo $cid
      docker rm $cid
      fi
      docker rmi $(docker images | grep $imagename| awk '{print $3}')
      fi

      #拉取鏡像
      echo "【第二步:拉取鏡像】"
      docker pull $imagefullname

      #等待10秒
      #sleep 10

      #啟動鏡像
      echo "【第三步:啟動容器】"
      docker run -d --rm -p $port:$port -v /var/btn/logs:/logs -v /opt:/opt --name $dockername --net=host $imagefullname
      endTime=`date +%s`
      sumTime=$(( $endTime - $startTime ))
      echo "部署成功,總耗時 $sumTime 秒"

      **********************************************************************

       

      posted @ 2023-04-04 08:40  tzmok  閱讀(31)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 亚洲国产成人久久精品app| 国产粉嫩系列一区二区三| 妖精视频yjsp毛片永久| 日本中文字幕有码在线视频 | 无码内射中文字幕岛国片| 灌南县| 日韩熟妇| 国产精品午夜福利精品| 久久99精品国产99久久6男男| 亚洲乱码中文字幕小综合| 国产色无码专区在线观看| 国产热A欧美热A在线视频| 一本久久a久久精品综合| 精品自拍偷拍一区二区三区| 国产在线观看网址不卡一区 | 天堂www在线中文| 永久免费AV无码网站大全| 亚洲欧美综合中文| 国产亚洲精品福利在线无卡一 | 精品视频在线观看免费观看| 蜜臀午夜一区二区在线播放| 亚洲中文字幕人成影院| 亚洲女人的天堂在线观看| 免费看的一级毛片| 国产稚嫩高中生呻吟激情在线视频| 亚洲国产精品成人综合久| 人妻有码中文字幕在线| 亚洲欧洲日产国码久在线| 免费国产一级特黄aa大片在线| 国产亚洲综合另类色专区| a国产一区二区免费入口| 久久香蕉国产线看观看猫咪av| 韩国美女福利视频在线观看 | 国产成人无码免费看片软件| 国产一区二区日韩在线| 五月婷婷久久草| 好屌草这里只有精品| 亚洲欧洲日产国无高清码图片| 中国china体内裑精亚洲日本| 亚洲av精彩一区二区| 又爽又黄又无遮掩的免费视频|