Process for updating in Docker Container? #296

Closed
opened 2025-12-29 16:20:38 +01:00 by adam · 5 comments
Owner

Originally created by @pettcomputers on GitHub (Jul 27, 2016).

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!

Originally created by @pettcomputers on GitHub (Jul 27, 2016). 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!
adam closed this issue 2025-12-29 16:20:38 +01:00
Author
Owner

@pettcomputers commented on GitHub (Jul 29, 2016):

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 commented on GitHub (Jul 29, 2016): 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.
Author
Owner

@mitchos commented on GitHub (Aug 3, 2016):

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 commented on GitHub (Aug 3, 2016): 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.
Author
Owner

@jeremystretch commented on GitHub (Aug 4, 2016):

@pettcomputers Does this answer your question?

@jeremystretch commented on GitHub (Aug 4, 2016): @pettcomputers Does this answer your question?
Author
Owner

@pettcomputers commented on GitHub (Aug 4, 2016):

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 notifications@github.com
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 commented on GitHub (Aug 4, 2016): 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 notifications@github.com 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 > .
Author
Owner

@jeremystretch commented on GitHub (Aug 4, 2016):

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

@jeremystretch commented on GitHub (Aug 4, 2016): I'm going to close this out. It'd be great if someone with Docker experience could extend the documentation.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#296