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

inaccurate warning with Docker Desktop containerd integration #16960

Closed
nicks opened this issue Jul 28, 2023 · 7 comments · Fixed by #16973
Closed

inaccurate warning with Docker Desktop containerd integration #16960

nicks opened this issue Jul 28, 2023 · 7 comments · Fixed by #16973
Labels
co/docker-driver Issues related to kubernetes in container kind/improvement Categorizes issue or PR as related to improving upon a current feature. priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@nicks
Copy link

nicks commented Jul 28, 2023

What Happened?

  1. Start Docker Desktop
  2. Go to settings -> features in development, and enable containerd integration
  3. Start minikube with:
minikube start --driver=docker

Expected result:
No warnings

Actual result:

❗  docker is currently using the stargz storage driver, consider switching to overlay2 for better performance

Not sure why minikube dislikes the stargz storage driver? And typically, users wouldn't want to change the driver in docker desktop from stargz to overlay2?

Attach the log file

n/a

Operating System

macOS (Default)

Driver

Docker

@rumpl
Copy link

rumpl commented Jul 28, 2023

Hi all, I work on the containerd integration and we are setting stargz as the default in docker desktop which uses overlay for normal images.

Users on linux that enable the containerd image store would get overlay as the default containerd snapshotter and its name in that case is “overlayfs”.

@afbjorklund
Copy link
Collaborator

The warning is much older than the stargz changes, which should be added to the check (or remove it).

@afbjorklund afbjorklund added the co/docker-driver Issues related to kubernetes in container label Jul 29, 2023
@rumpl
Copy link

rumpl commented Jul 30, 2023

IMO the best bet is to remove the check. There are many snapshotters and more to come, minikube can’t know them all.

@afbjorklund
Copy link
Collaborator

afbjorklund commented Jul 31, 2023

@rumpl : the main reason is for the preload, I'm not sure what the other "better performance" refers to...

commit 8ec8d1c

It needs to match, since it tries to archive /var/lib/docker as is. Maybe could add some more preloads ?


For the generic case, we might want to gather all of the "cache" (save) images into one single .tar.lz4 file ?

But I'm not sure what the benchmark is, with multiple .tar.gz versus one big .tar.lz4 containing all images.

@afbjorklund afbjorklund added the kind/improvement Categorizes issue or PR as related to improving upon a current feature. label Jul 31, 2023
@afbjorklund
Copy link
Collaborator

Users on linux that enable the containerd image store would get overlay as the default containerd snapshotter and its name in that case is “overlayfs”.

The containerd check was also using the docker check, so separated them:

@afbjorklund afbjorklund added the priority/backlog Higher priority than priority/awaiting-more-evidence. label Jul 31, 2023
@afbjorklund
Copy link
Collaborator

I think it was checking the wrong docker anyway, so now the preload is disabled for no particular reason...
The original issue was when using the "none" driver, not when using the "docker" driver

@spowelljr
Copy link
Member

I think it was checking the wrong docker anyway, so now the preload is disabled for no particular reason... The original issue was when using the "none" driver, not when using the "docker" driver

I think this is contributing to the problem in #16425, there is obviously something wrong with preload=false and kubectl not being present on the machine, but the preload=false is being set when it seems like it shouldn't be, the cluster starts fine with the preload when using the stargz storage driver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/docker-driver Issues related to kubernetes in container kind/improvement Categorizes issue or PR as related to improving upon a current feature. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants