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

Container image info are not updated properly when container is rebuilt as empty #12136

Closed
gabrielmougard opened this issue Aug 10, 2023 · 0 comments · Fixed by #12138
Closed
Assignees
Labels
Bug Confirmed to be a bug

Comments

@gabrielmougard
Copy link
Contributor

Required information

  • Distribution: Ubuntu
  • Distribution version: 20.04

Issue description

Let say we have a stopped container c1 using whatever image. Let say we want to rebuild it as empty with lxc rebuild c1 --empty
This should work but then if we do lxc config c1 show, we see that the old image.* fields of the container aren't updated properly. This could be misleading as we can't distinguish an "empty" container (no rootfs) from a normal one.

Instead we should have no image.* fields or at least a value that stands out to let the user know that this instance won't start up because it is empty.

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

Successfully merging a pull request may close this issue.

2 participants