zoukankan      html  css  js  c++  java
  • docker save和load将本地镜像上传AWS

      今天在AWS云主机上部署Grafana,发现无法使用私有仓库,于是,尝试了下docker save和docker load。着实很好用,简单记录下:

    docker save用法:

    Usage:    docker save [OPTIONS] IMAGE [IMAGE...]
    
    Save one or more images to a tar archive (streamed to STDOUT by default)
    
    Options:
      -o, --output string   Write to a file, instead of STDOUT
    docker save -o your_path/image.tar image_name:tag

    docker load用法:

    docker load -i image.tar
    Usage:    docker load [OPTIONS]
    
    Load an image from a tar archive or STDIN
    
    Options:
      -i, --input string   Read from tar archive file, instead of STDIN
      -q, --quiet          Suppress the load output

    scp携带证书传输:

    scp -i "your_certificatefile" local_folder remote_username@host:remote_folder
  • 相关阅读:
    python 随机字符串
    Ajax
    Django (Form)
    Django (项目)
    Django (二)
    Django (一)
    Django 学生管理系统
    地理坐标系 与 投影坐标系
    shapefile
    图表绘制工具--Matplotlib 3
  • 原文地址:https://www.cnblogs.com/NolaLi/p/11890800.html
Copyright © 2011-2022 走看看