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

[Bug] I updated image, but containter started without data #248

Closed
radiusmk opened this issue Jul 30, 2021 · 4 comments
Closed

[Bug] I updated image, but containter started without data #248

radiusmk opened this issue Jul 30, 2021 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@radiusmk
Copy link

Describe the bug
A clear and concise description of what the bug is.

Reproduce
Steps to reproduce the behavior:

  1. Update image with "docker pull securecompliance/gvm" command
  2. Remove the old container - "docker container prune"
  3. Start Container - "docker run -d --restart=always --publish 443: 9392 --publish 9390: 9390 --publish 2222: 22 --publish 127.0.0.1:5432:5432 --env password = "xxxxxxxxx" --env sshd = "true" -Volume gvm-data:/data --Name gvm securecommpliance/gvm"

After that, I couldn't log in to the GVM Web Interface with the defined password, but with the "adminpassword" login was possible, but no old data.
I tried to download securecompliance/gvm:21.4.2-v2-full and start a new container, with this tag I could log in with defined password, but unfortunately the old data has not been loaded.

Expected behavior
Update image and start new containers with old data.

Can I start a container with new image whitout lost old data?
@radiusmk radiusmk added the bug Something isn't working label Jul 30, 2021
@radiusmk
Copy link
Author

I tried update from 21.4.0-v5.

@Dexus
Copy link
Contributor

Dexus commented Jul 30, 2021

Hi,

first -data and -data-full are preinitialisated. So the default password is set.

There is no way current to move the data from old versions. But maybe if you can wait, I can create a mitigation script.

If you want to use all volumes and start fresh from scratch you should use the tag 21.4.2 without any suffix.

@radiusmk
Copy link
Author

Ok, thanks fo reply! At this moment I will continue using the old version.

@Dexus
Copy link
Contributor

Dexus commented Aug 8, 2021

@radiusmk I close this issue and work on the miration in #250
Hope I will get it done this week.

@Dexus Dexus closed this as completed Aug 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants