1. Use vscode to link the container
2.
使用 docker ps -a 查看所有容器
3.
- docker commit CONTAINER_NAME jingxiang_name # 将容器保存成镜像
4.
docker images # 查看本地镜像是否生成
5.
- docker save -o [name.tar] [jingxiang_name] # 将容器保存成tar文件
6. Just pull the generated tar package to a local folder. You can also use the command
scp username@主机名: /home/acs/boke.tar 拉到本地