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

should setting CONTAINER_ROOT_LV_MOUNT_PATH also update docker to not point at /var/lib/docker ? #274

Open
dustymabe opened this issue Jun 3, 2018 · 4 comments

Comments

@dustymabe
Copy link
Contributor

I set:

STORAGE_DRIVER=overlay2
GROWPART=true
ROOT_SIZE=15G
CONTAINER_ROOT_LV_SIZE=100%FREE
CONTAINER_ROOT_LV_NAME="container-root-lv"
CONTAINER_ROOT_LV_MOUNT_PATH="/var/lib/containers/container-runtime"

I want /var/lib/containers/container-runtime to be used by docker. Should container-storage-setup do this for me?

@dustymabe dustymabe changed the title should setting CONTAINER_ROOT_LV_MOUNT_PATH also update docker to not point at /var/lib/docker ? should setting CONTAINER_ROOT_LV_MOUNT_PATH also update docker to not point at /var/lib/docker ? Jun 3, 2018
@rhvgoyal
Copy link
Collaborator

rhvgoyal commented Jun 4, 2018

I don't think so. Container-storage-setup should not be touching docker config files.

@dustymabe
Copy link
Contributor Author

I don't think so. Container-storage-setup should not be touching docker config files.

I thought it populated /etc/sysconfig/docker-storage ? I just assumed we could set it in there.

@rhvgoyal
Copy link
Collaborator

rhvgoyal commented Jun 5, 2018

only storage related options go in /etc/sysconfig/docker-storage. What root dir to use for docker storage, that configuration comes from /etc/sysconfig/docker. Trying to pass that configuration from two files now will only add to the confusion. What's wrong with modifying /etc/sysconfig/docker explicitly using cloud-init or something else. In fact, once I had written patches to let container-storage-setup know what's the root directory docker is planning to use and take some decisions based on that.

IMO, container-storage-setup just sets up the storage as asked by user/docker. It should not dictate which root dir docker should use and modify that. That mechanism should be outside container-storage-seutp.

@dustymabe
Copy link
Contributor Author

ok, yeah the relationship that conatiner-storage-setup has with the docker service is weird. If you consider the fact that it starts before docker and is required by docker then "why woulnd't it configure the path" is a valid question. But if you look at it like a generic tool to configure container storage for different runtimes (including docker) then that question becomes less relevant.

It's just a weird relationship is all I'm saying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants