-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Podman driver doesn't remove volume or network on delete #9705
Comments
The filter option is failing, for some reason: $ sudo -n podman volume ls --filter label=name.minikube.sigs.k8s.io=minikube
$ sudo -n podman volume ls
DRIVER VOLUME NAME
local minikube
$ sudo -n podman volume inspect minikube
[
{
"Name": "minikube",
"Driver": "local",
"Mountpoint": "/var/lib/containers/storage/volumes/minikube/_data",
"CreatedAt": "2020-11-14T15:13:11.855745076+01:00",
"Labels": {
"created_by.minikube.sigs.k8s.io": "true",
"name.minikube.sigs.k8s.io": "minikube"
},
"Scope": "local",
"Options": {
},
"UID": 0,
"GID": 0,
"Anonymous": false
}
]
$ podman version
Version: 2.1.1
API Version: 2.0.0
Go Version: go1.15.2
Built: Thu Jan 1 01:00:00 1970
OS/Arch: linux/amd64 |
It works OK in the docker driver: $ docker volume ls --filter label=name.minikube.sigs.k8s.io=minikube
DRIVER VOLUME NAME
local minikube
$ docker volume inspect minikube
[
{
"CreatedAt": "2020-11-14T15:22:40+01:00",
"Driver": "local",
"Labels": {
"created_by.minikube.sigs.k8s.io": "true",
"name.minikube.sigs.k8s.io": "minikube"
},
"Mountpoint": "/var/lib/docker/volumes/minikube/_data",
"Name": "minikube",
"Options": {},
"Scope": "local"
}
] So it looks like a bug in podman. |
Reported upstream as containers/podman#8341 The workaround is to remove the volume explicitly, after doing minikube delete
Maybe minikube should remove the volumes explicitly too, like it creates them ? |
As mentioned in #9714, this cleanup now also applies to the created network.
|
This makes the next create attempt fail:
The text was updated successfully, but these errors were encountered: