create account

Copy docker image and transfer to other host by dappcoder

View this thread on: hive.blogpeakd.comecency.com
· @dappcoder · (edited)
$2.61
Copy docker image and transfer to other host
中文版本:[拷贝docker镜像,转移到其他宿主机](https://hive.blog/hive-132971/@dappcoder/steem-docker-20200319)

In actual work, there is a case of copying docker images to other hosts, usually through pull, but that requires a repo.

Can we package files directly and transfer the images to other hosts?

Use `docker images` to list the images on the local host:
$ docker images    

Save the steem-22.2 image of the local host as the file steem-22.2.tar in the current directory, and then copy this file to other hosts
`sudo docker save -o steem-22.2  ./steem-22.2.tar `


Executed on the other host where the docker image needs to be restored (the other host must have docker installed)
`sudo docker load < steem-22.2.tar  `

The prompt steem-22.2 indicates that the loading is successful, and you can continue to use the docker image.

When saving a docker image, you can save multiple images as one file, and export multiple images at the same time.
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 82 others
👎  
properties (23)
authordappcoder
permlinksteem-dappcoder-20200319
categoryhive-132971
json_metadata{"app":"hiveblog/0.1","tags":["cn","mini","jjm","cn-reader","chinese"],"links":["https://hive.blog/hive-132971/@dappcoder/steem-docker-20200319"],"format":"markdown"}
created2020-03-19 20:06:03
last_update2020-04-02 08:32:00
depth0
children6
last_payout2020-03-26 20:06:03
cashout_time1969-12-31 23:59:59
total_payout_value1.364 HBD
curator_payout_value1.246 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length933
author_reputation9,480,331,507,174
root_title"Copy docker image and transfer to other host"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,499,569
net_rshares9,362,820,515,697
author_curate_reward""
vote details (147)
@hivewatchers ·
[Source](https://hive.blog/hive-132971/@dappcoder/steem-docker-20200319)
Copying and pasting previous posts or significant parts there of could be seen as spam when:

- Reposting the same content without additional original content or significant changes
- Reposting content within the same payout window

Spam is discouraged by the community and may result in the account being Blacklisted.

Please refrain from copying and pasting previous posts going forward. If you believe this comment is in error, please contact us in [#disputes on Discord](https://discord.gg/YR2Wy5A)
properties (22)
authorhivewatchers
permlinkre-dappcoder-steem-dappcoder-20200319-20200401t170332748z
categoryhive-132971
json_metadata{"app":"hivewatchers/0.4","format":"markdown+html","community":"hivewatchers"}
created2020-04-01 17:03:33
last_update2020-04-01 17:03:33
depth1
children3
last_payout2020-04-08 17:03:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length582
author_reputation-81,697,209,573,209
root_title"Copy docker image and transfer to other host"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,669,102
net_rshares0
@dappcoder ·
Sorry!
Because it's not convenient to visit steem / hive app or network after hive hardfork.

So I use the command line of beempy tool to publish this post as English Edition , But I  post with the markdown file of Chinese Edition by mistake.

@hivewatchers @steemcleaners

I have fixed with my English Edistion markdown file.
👎  
properties (23)
authordappcoder
permlinkq85jxy
categoryhive-132971
json_metadata{"users":["hivewatchers","steemcleaners"],"app":"hiveblog/0.1"}
created2020-04-02 08:37:12
last_update2020-04-02 08:37:12
depth2
children2
last_payout2020-04-09 08:37:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length326
author_reputation9,480,331,507,174
root_title"Copy docker image and transfer to other host"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,677,493
net_rshares-11,815,917,165
author_curate_reward""
vote details (1)
@logic ·
Ok, I deactivated the blacklist. Please do not repost the same post multiple of times.
The option is to iclude both language versions in one post or decline payput before posting the second post.
properties (22)
authorlogic
permlinkq85o6p
categoryhive-132971
json_metadata{"app":"hiveblog/0.1"}
created2020-04-02 10:08:51
last_update2020-04-02 10:08:51
depth3
children1
last_payout2020-04-09 10:08:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length195
author_reputation92,052,875,413,650
root_title"Copy docker image and transfer to other host"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,678,223
net_rshares0
@innerhive ·
https://i.imgur.com/CBqCEo5.png<br><br>Join the community in our migration to Hive, a community built blockchain for the community.  All Steem account holders will receive equivalent stake on the new Hive blockchain.<br><br>Please [follow @innerhive on twitter](https://twitter.com/innerhive) for more information.
properties (22)
authorinnerhive
permlinkinnerhive-re-dappcodersteem-dappcoder-20200319
categoryhive-132971
json_metadata""
created2020-03-19 20:06:15
last_update2020-03-19 20:06:15
depth1
children0
last_payout2020-03-26 20:06:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length314
author_reputation8,787,538,272,853
root_title"Copy docker image and transfer to other host"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,499,575
net_rshares0
@steemcleaners ·
$0.49
Copying and pasting previous posts or significant parts there of could be seen as spam when:

Reposting the same content without additional original content or significant changes
Reposting content within the same payout window
Spam is discouraged by the community and may result in the account being Blacklisted.
👍  
properties (23)
authorsteemcleaners
permlinkq84cqo
categoryhive-132971
json_metadata{"app":"hiveblog/0.1"}
created2020-04-01 17:04:03
last_update2020-04-01 17:04:03
depth1
children0
last_payout2020-04-08 17:04:03
cashout_time1969-12-31 23:59:59
total_payout_value0.244 HBD
curator_payout_value0.243 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length313
author_reputation2,789,224,428,782,668
root_title"Copy docker image and transfer to other host"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,669,111
net_rshares2,044,847,329,676
author_curate_reward""
vote details (1)