Comments (7)
After making the following adjustments to the docker file, I get something that works for me. This is still a bug if we want to support volumes defined in a JSON array.
The fix is to not use a JSON array to define volumes in the docker file.
VOLUME /var/lib/docker /var/lib/kubelet /var/run /sys /etc/kubernetes /etc/ssl/certs /rootfs /nsenter /usr /lib64
The results
$ docker2aci docker://quay.io/kelseyhightower/kubelet:0.19.0
Downloading c6b09d8961e4: [====================================] 32 B/32 B
Downloading 57858edd3470: [====================================] 7.92 MB/7.92 MB
Downloading 1a4168fc39d8: [====================================] 32 B/32 B
Downloading 92c62d2e9e70: [====================================] 32 B/32 B
Converted volumes:
name: "volume-nsenter", path: "/nsenter", readOnly: false
name: "volume-rootfs", path: "/rootfs", readOnly: false
name: "volume-usr", path: "/usr", readOnly: false
name: "volume-var-lib-kubelet", path: "/var/lib/kubelet", readOnly: false
name: "volume-var-run", path: "/var/run", readOnly: false
name: "volume-etc-kubernetes", path: "/etc/kubernetes", readOnly: false
name: "volume-etc-ssl-certs", path: "/etc/ssl/certs", readOnly: false
name: "volume-lib64", path: "/lib64", readOnly: false
name: "volume-sys", path: "/sys", readOnly: false
name: "volume-var-lib-docker", path: "/var/lib/docker", readOnly: false
Generated ACI(s):
kelseyhightower-kubelet-0.19.0.aci
from docker2aci.
@kelseyhightower Thanks for reporting will take a look :)
from docker2aci.
I'm trying to reproduce this without success.
Dockerfile:
FROM scratch
ADD busybox /bin/busybox
VOLUME ["/test", "/test2"]
CMD ["/bin/busybox", "sh"]
Then:
iaguis@locke-work: ~/temp/rkt/volumes
> docker build .
Sending build context to Docker daemon 934.4 kB
Sending build context to Docker daemon
Step 0 : FROM scratch
--->
Step 1 : ADD busybox /bin/busybox
---> 7e366b67d1b0
Removing intermediate container 571daf6eb9c5
Step 2 : VOLUME /test /test2
---> Running in 617a8f290200
---> b25c82585106
Removing intermediate container 617a8f290200
Step 3 : CMD /bin/busybox sh
---> Running in 828c1bb9b0c3
---> 7e860c3a005e
Removing intermediate container 828c1bb9b0c3
Successfully built 7e860c3a005e
iaguis@locke-work: ~/temp/rkt/volumes
> docker tag 7e860c3a005e busybox-test-volumes
iaguis@locke-work: ~/temp/rkt/volumes
> docker save -o test-volumes.docker busybox-test-volumes
iaguis@locke-work: ~/temp/rkt/volumes
> docker2aci test-volumes.docker
Extracting 7e366b67d1b0
Extracting b25c82585106
Extracting 7e860c3a005e
Converted volumes:
name: "volume-test", path: "/test", readOnly: false
name: "volume-test2", path: "/test2", readOnly: false
Generated ACI(s):
busybox-test-volumes-latest.aci
iaguis@locke-work: ~/temp/rkt/volumes
> actool cat-manifest --pretty-print busybox-test-volumes-latest.aci
{
"acKind": "ImageManifest",
"acVersion": "0.5.1",
"name": "busybox-test-volumes",
"labels": [
{
"name": "version",
"value": "latest"
},
{
"name": "os",
"value": "linux"
}
],
"app": {
"exec": [
"/bin/busybox",
"sh"
],
"user": "0",
"group": "0",
"mountPoints": [
{
"name": "volume-test",
"path": "/test"
},
{
"name": "volume-test2",
"path": "/test2"
}
]
},
"annotations": [
{
"name": "created",
"value": "2015-06-30T15:33:00Z"
}
]
}
from docker2aci.
@iaguis does it reproduce consistently with kelsey's image?
from docker2aci.
He adjusted his Dockerfile so I can't reproduce it either.
from docker2aci.
oh right, docker images aren't immutable ;-)
from docker2aci.
Closing as we couldn't reproduce.
from docker2aci.
Related Issues (20)
- Infinite loop vulnerability in retrieving images chain HOT 7
- a malicious ACI created during layer archive extraction via symlink or hardlink attack HOT 6
- Keep docker image labels around after conversion HOT 12
- lib: allow to specify registry and mediatype options HOT 3
- Specify destination file name for created image HOT 2
- Wrong v2 registry check url
- Need to support docker registries that store v1 and v2 images HOT 11
- build fails HOT 4
- [Feature request] Layer caching HOT 1
- docker://debian wrong symlink container/var/lock -> /run/lock HOT 5
- environment variable does not have valid identifier HOT 1
- Manifest differ with same image HOT 10
- Clarify release executables' target, provide statically linked ones HOT 1
- Support image manifest lists / index
- Some images in gcr.io can't be fetched HOT 5
- Converting local files from buildah fails "Could not find image" HOT 3
- failed install docke2aci
- Error: conversion error: error generating ACI: archive/tar: cannot encode header HOT 4
- FTBFS on multiple architectures: error generating ACI: "unknown arch tuple"
- FTBFS with image-spec 1.0.1: undefined: v1.MediaTypeImageManifestList HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker2aci.