docker documentation redis example fails with missing volume error #1480
Comments
I can update the documentation to include the volume. Should we consider creating an empty volume if it's not provided by the CLI? |
How does this work in Dockerland? what do they provide? |
When the Dockerfile has
The volume /data is stored in _/var/lib/docker/volumes/$uuid/data, unless another path is given with
I am fine with creating an empty volume. But there would be a difference with Docker: Docker promises not to garbage collect the data. And appc/spec Pod Manifest Schema says:
Would it be fine? |
@NeilW what would you expect to happen in this case? |
In Docker the container starts. So I would expect that unless a persistent volume is specified you should probably create a 'kind=empty' volume in a Docker conversion. |
I would like this feature also, but it has a lot of caveats. Firstly, if just running an image implicitly creates a volume, then you need to worry about volumes not getting cleaned up, and it's a bad idea to delete the associated volume when you remove the container, because it might have important data in there, so you end up with orphaned containers, and the user needs to manage them. It's possible to allow rkt-gc to clean them up, but you have to be super careful about cleaning up volumes since they usually have important data in them. I don't have any suggestions for fixing this, but I do think having this feature would be quite useful, but in practice any production deploy the user is most likely specifying the volume, so it's hard to say if this is really necessary/important. |
I would suggest that if a user forgets to add a volume then we create one of an "empty" kind and then print the warning like: |
It will not be ready today, moving to next milestone. |
The redis example of a docker conversion at https://github.com/coreos/rkt/blob/master/Documentation/running-docker-images.md no longer works as advertised.
Docker generates a default volume when running the image, but rkt does not.
The text was updated successfully, but these errors were encountered: