1
sunhk25 OP # docker version
Client version: 1.5.0 Client API version: 1.17 Go version (client): go1.3.3 Git commit (client): a8a31ef/1.5.0 OS/Arch (client): linux/amd64 Server version: 1.5.0 Server API version: 1.17 Go version (server): go1.3.3 Git commit (server): a8a31ef/1.5.0 # docker info Containers: 14 Images: 89 Storage Driver: devicemapper Pool Name: docker-253:0-264219-pool Pool Blocksize: 65.54 kB Backing Filesystem: extfs Data file: /dev/loop0 Metadata file: /dev/loop1 Data Space Used: 6.659 GB Data Space Total: 107.4 GB Metadata Space Used: 7.434 MB Metadata Space Total: 2.147 GB Udev Sync Supported: true Data loop file: /var/lib/docker/devicemapper/devicemapper/data Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata Library Version: 1.02.89-RHEL6 (2014-09-01) Execution Driver: native-0.2 Kernel Version: 2.6.32-504.16.2.el6.x86_64 Operating System: <unknown> CPUs: 1 Total Memory: 1.436 GiB Name: v1env ID: YYBJ:54SJ:LYZM:V6E3:UF4P:HGFB:A7PC:IT7Z:645G:O6XB:GAO4:XADU |
2
jokester 2015-04-27 14:14:38 +08:00 1
tar -c不是创建tar吗? 你确定是在 (b) import (/b) 一个tar?
|
3
sunhk25 OP @jokester
是的,我确实是想从tar里导入image。 https://docs.docker.com/reference/commandline/cli/ Import from a local directory: $ sudo tar -c . | sudo docker import - exampleimagedir |
4
jokester 2015-04-27 14:43:17 +08:00 1
@sunhk25
顶楼的话我理解为”现在(已经)有一个项目的docker tar文件" `tar -c | docker import` 这个命令做的事情是把当前目录的内容做成一个新的tar 然后导入成image 从已有tar文件导入的例子是"Import from a local file" |
5
sunhk25 OP |
6
jokester 2015-04-27 15:22:19 +08:00 1
"成功"不是docker import没报错
是这个新image确实包含了你想要import的内容 如果不包含 折腾run的意义在哪 |
7
sunhk25 OP |
8
jokester 2015-04-28 12:37:20 +08:00 1
不要只口头谢呀 给钱呀
|
9
sunhk25 OP 能给的都给你了
|
10
jokester 2015-04-28 15:49:25 +08:00
大爷 常来呀
|