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

Question: How to change this directory /var/lib/containers/storage/overlay #3228

Closed
cnfzh66 opened this issue Jun 1, 2023 · 2 comments
Closed
Assignees

Comments

@cnfzh66
Copy link

cnfzh66 commented Jun 1, 2023

Detailed description of the question.

Is this directory where the sealos image is stored?How to change to /data/containers?

Some reference materials you see.

sealos v4.1.7

@ghostloda
Copy link
Collaborator

ghostloda commented Jun 2, 2023

yes,you can use '--root' to specify the storage location.

[root@master1 ~]# sealos pull --root /data/dockerhub/ busybox
8135583d97feb82398909c9c97607159e6db2c4ca2c885c0b8f590ee0f9fe90d
[root@master1 ~]# sealos images --root /data/dockerhub/
REPOSITORY                  TAG      IMAGE ID       CREATED       SIZE
docker.io/library/busybox   latest   8135583d97fe   13 days ago   5.1 MB

@cnfzh66
Copy link
Author

cnfzh66 commented Jun 2, 2023

yes,you can use '--root' to specify the storage location.

[root@master1 ~]# sealos pull --root /data/dockerhub/ busybox
8135583d97feb82398909c9c97607159e6db2c4ca2c885c0b8f590ee0f9fe90d
[root@master1 ~]# sealos images --root /data/dockerhub/
REPOSITORY                  TAG      IMAGE ID       CREATED       SIZE
docker.io/library/busybox   latest   8135583d97fe   13 days ago   5.1 MB

Can't I modify its default path? My root directory is only 15GB in size。。。

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

No branches or pull requests

4 participants