netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Process for updating in Docker Container?

Open pettcomputers opened this issue 10 years ago • 5 comments

Hi, I've asked on IRC Channel, Reddit, and poked around on google but haven't been able to discern the process for updating netbox when deployed via docker-compose. Anyone here have a preferred method of doing so? Thanks!

pettcomputers avatar Jul 27 '16 12:07 pettcomputers

After checking the demo site, it appears the docker version installed as version 1.2.0, not sure if this matters on upgrade paths/methods.

pettcomputers avatar Jul 29 '16 02:07 pettcomputers

Hi, I deployed Netbox in Docker prior to the official Docker release (i.e. I built my own Docker version). When I want to upgrade, I just attach to the container docker attach [container-name/ID] and then go to my Netbox directory /opt/netbox. From there it's a simple matter of following the standard upgrade process:

# git checkout master
# git pull origin master
# ./upgrade.sh

Then restart Nginx and Supervisord, detach from the container Ctrl-P Ctrl-Q and you're done.

If you're running daemonised then you can use docker exec to run those commands in the container.

Caveat: There's always a better way to do something, so I'm not saying this is the definitive way to upgrade but might help you out for the time being.

mitchos avatar Aug 02 '16 23:08 mitchos

@pettcomputers Does this answer your question?

jeremystretch avatar Aug 04 '16 16:08 jeremystretch

I helped, but I couldn't get it going. I ended up spinning up a new VM and got it going the standard way. Thank you again for the awesome app!

On Thu, Aug 4, 2016 at 11:02 AM, Jeremy Stretch [email protected] wrote:

@pettcomputers https://github.com/pettcomputers Does this answer your question?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/digitalocean/netbox/issues/391#issuecomment-237599885, or mute the thread https://github.com/notifications/unsubscribe-auth/ATuX6WGCg57Vflxdn1Z_TzSQqDBL8GVaks5qcg0sgaJpZM4JWJAn .

pettcomputers avatar Aug 04 '16 17:08 pettcomputers

I'm going to close this out. It'd be great if someone with Docker experience could extend the documentation.

jeremystretch avatar Aug 04 '16 18:08 jeremystretch