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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章