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

persistent data hint #62

Closed
dmnc-net opened this issue Feb 22, 2019 · 3 comments
Closed

persistent data hint #62

dmnc-net opened this issue Feb 22, 2019 · 3 comments

Comments

@dmnc-net
Copy link

Hi, I never worked with docker before so you may find me very confused, please be patient.

I'm running docker for testing/dev purposes on my Arch Linux laptop and I'm following the Portainer docs, so I did this:

$ docker volume create portainer_data
$ docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer

Next, in the Persist Portainer data section I'm confused with "You’ll need to persist Portainer data to keep your changes after restart/upgrade of the Portainer container". But I don't want do a bind mount, I've created the volume which is located in /var/lib/docker/volumes/portainer_data. What do you mean by restart of the Portainer container? That means that docker will delete/recreate the volume every time when the service will be started/restarted (i.e. laptop reboot)? This makes on sense to me. Thanks for clarifying

@deviantony
Copy link
Member

Hi @dmnc-net

Following the instructions in the quick start section will create a Docker volume and persist the Portainer data inside the volume.

The instruction in the Persist Portainer data section simply shows an example on how to persist Portainer data via a bind mount.

What could we change to make it clearer?

@mjamro
Copy link

mjamro commented Jun 9, 2019

@deviantony

I also got confused after reading the guide. I think it needs a little info when persiting via volume is enough and when persisting via a bind mount is better.

@xe-nvdk xe-nvdk closed this as completed Sep 2, 2020
@madindehead
Copy link

Hi @dmnc-net

Following the instructions in the quick start section will create a Docker volume and persist the Portainer data inside the volume.

The instruction in the Persist Portainer data section simply shows an example on how to persist Portainer data via a bind mount.

What could we change to make it clearer?

Sorry for commenting on this, but to me it wasn't clear that the data was going to be persisted when created using the command in the quick start section. I found the persist section after I launched the container. By finding this I was certain that my data was going to still be there on a reboot.

gitbook-com bot pushed a commit that referenced this issue Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants