desktop-linux
desktop-linux copied to clipboard
Kubernetes PV/PVC data lost after restarting Docker Desktop in Ubuntu
- [x] I have tried with the latest version of Docker Desktop
- [x] I have tried disabling enabled experimental features
- [ ] I have uploaded Diagnostics
- Diagnostics ID:
Expected behavior
Given that I'm running a Kubernetes
cluster in Docker Desktop
in Ubuntu
And I'm using PersistentVolume
s and PersistentVolumeClaim
s with a Retain
policy to store my database data
And I'm setting hostPath
with a path
pointing to a folder in my home directory like /home/dev/db-data/
When I restart Docker Desktop
, for example after rebooting my computer
Then I'd expect that the data saved in my persistent volumes is retained
Actual behavior
The data saved in my persistent volumes is gone after restarting Docker Desktop My local directory set is hotPath is always empty
Information
- Linux distro: Ubuntu
- Distro version: 20.04
- Docker Desktop Version: 4.13
This doesn't happen with minikube
. The data persists after a restart.
Steps to reproduce the behavior
- Enable Kubernetes in Docker Desktop
- Create a
PersistentVolume
with ahostPath
to point to a local directory and aPersistentVolumeClaim
to be used in some service - Save some data in the volume
- Restart Docker Desktop
- The data is gone and the local directory is always empty
There hasn't been any activity on this issue for a long time.
If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale
comment.
If not, this issue will be closed in 30 days.
Prevent issues from auto-closing with a /lifecycle frozen
comment.
/lifecycle stale
There hasn't been any activity on this issue for a long time.
If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale
comment.
If not, this issue will be closed in 30 days.
Prevent issues from auto-closing with a /lifecycle frozen
comment.
/lifecycle stale