Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for configuring the upper directory of a docker container under a given directory #47914

Open
tchaton opened this issue Jun 5, 2024 · 4 comments
Labels
area/storage/overlay area/storage kind/feature Functionality or other elements that the project doesn't currently have. Features are new and shiny status/0-triage

Comments

@tchaton
Copy link

tchaton commented Jun 5, 2024

Description

When sending a docker spec to the deamon to create a new container, I would like to be able to specifiy how the deamon GraphDriver should place the upper dir of the container overlay.

This would enable me to isolate the upper dir of the user container on a different partition.

I managed to write a bash script to do this, but I can't exclusively place a container on a different partition as the /var/lib/docker/image/overlay2/imagedb/content/sha256/ and /var/lib/docker/containers/ are empty when I am doing the bind mounting.

I would really like to avoid to have to write my own GraphDriver Plugin: https://docs.docker.com/engine/extend/plugins_graphdriver/

I would really appreciate some help.

@tchaton tchaton added kind/feature Functionality or other elements that the project doesn't currently have. Features are new and shiny status/0-triage labels Jun 5, 2024
@tchaton
Copy link
Author

tchaton commented Jun 22, 2024

Any updates ? This is quite important for us. I have a solution to make it work, but it is racy.

I can also work on contributing this.

@tchaton
Copy link
Author

tchaton commented Jun 24, 2024

Hey @thaJeztah @GordonTheTurtle Any updates ?

@vvoland
Copy link
Contributor

vvoland commented Jun 25, 2024

There are no plans to support that.
Also, graphdriver plugins are deprecated now. You can use the containerd image store integration and write a custom snapshotter to achieve that.

@tchaton
Copy link
Author

tchaton commented Jun 25, 2024

Thanks @vvoland . Do you have docs to create a custom snapshotter ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/storage/overlay area/storage kind/feature Functionality or other elements that the project doesn't currently have. Features are new and shiny status/0-triage
Projects
None yet
Development

No branches or pull requests

3 participants