docker run --rm -p 3478:3478/udp -p 6789:6789/udp -p 8080:8080 \ -p 8443:8443 -p 8843:8843 -p 8880:8880 -p 10001:10001/udp -e TZ='Europe/Paris' \ -v /volume1/docker/unifi:/unifi --name unifi jacobalberty/unifi:stable
And tadaaa! Suddenly, I was able to access the Unifi Controller again. But when I stopped the command on the command line, the container would stop. So I needed a little trick.
- Start the docker container from the command line through an SSH session in the terminal.
- Verify that you can access the Unifi Controller
- Go to DSM and login, start the Docker app
- Click on 'Container' and identify the unifi container. Right-click it, go to Settings and then Duplicate Settings. A copy container will be made, named unifi-copy.
- Kill the docker command from the terminal. But now you have a second copy.
- Tweak and configure the copy container as you like and start it from the DSM.
Alternatively, you could also use the -d option as per documentation.
--detach , -d | Run container in background and print container ID |
No comments:
Post a Comment