A机器导出

$ sudo docker save aef2a010b6b5 > parsec-client-v1.0-docker.tar

B机器导入

$ sudo docker load < parsec-client-v1.0-docker.tar

查看image id

$ sudo docker images
REPOSITORY   TAG       IMAGE ID       CREATED        SIZE
<none>       <none>    aef2a010b6b5   47 hours ago   17.3MB

根据image id设置tag

$ sudo docker tag aef2a010b6b5 parsec-client:v1.0
$ sudo docker images
REPOSITORY      TAG       IMAGE ID       CREATED        SIZE
parsec-client   v1.0      aef2a010b6b5   47 hours ago   17.3MB

标签: docker

添加新评论