GithubHelp home page GithubHelp logo

Comments (2)

jacobalberty avatar jacobalberty commented on September 28, 2024

You can just pull the newest image and it will upgrade fine, the new volume layout is a separate issue entirely.

The new volume layout should be entirely backwards compatible with the old, it just provides a cleaner way of organizing the data to allow you to put data and log in a single volume.

You have a couple of options if you want to move to the new layout, the easiest is to only move your data volume line. The new docker run command would look like
docker run -d -p 3478:3478/udp -p 8080:8080 -p 8443:8443 -v /volume1/docker/unifi/:/unifi/data --restart=always --name unifi jacobalberty/unifi:latest
The other option is to move the contents of /volume1/docker/unifi as a whole into a data subdirectory. Something like

mkdir -p /volume1/docker/unifi2/
mv /volume1/docker/unifi /volume1/docker/unifi2/data
mv /volume1/docker/unifi2 /volume1/docker/unifi

then your docker run command would be
docker run -d -p 3478:3478/udp -p 8080:8080 -p 8443:8443 -v /volume1/docker/unifi/:/unifi --restart=always --name unifi jacobalberty/unifi:latest

This would give you the advantage of having your log files and data folder preserved under /volume1/docker/unifi.

Of course to just upgrade from 5.5.24 to 5.6.xx you don't have to do any of this, the new version of the image is backwards compatible with the old volume layout.

from unifi-docker.

gjs1969 avatar gjs1969 commented on September 28, 2024

Well, that is a very complete answer, thank you so much ! I think i will try the new layout on a test environment. Thank you again for your time and information 🥇

from unifi-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.