GithubHelp home page GithubHelp logo

Comments (7)

jacobalberty avatar jacobalberty commented on June 19, 2024

It runs fine with only specific ports bound, what does docker ps say about the ports for the running container?

from unifi-docker.

pfried avatar pfried commented on June 19, 2024

It does not bind them somehow, usually i get an error if the ports cannot be bound. But this then may be a docker specific error:

The command i am running:
sudo docker run --rm -d -p 8442:8443 --net=host -v ~/unifi/data:/var/lib/unifi -v ~/unifi/logs:/var/log/unifi -v ~/unifi/run:/var/run/unifi --name unifi jacobalberty/unifi:unifi5

from unifi-docker.

pfried avatar pfried commented on June 19, 2024

Thank you for the quick response, i think this issue is not related to this project, binding to the host network and specifying the ports may have some problems, if i do not specify the ports they get bound correctly to a ephemeral port range

from unifi-docker.

JohnnyMaccarone avatar JohnnyMaccarone commented on June 19, 2024

I actually have the same problem. Everything works until I try to bind the ports to the non-standard ones.
While I use the same command as pfried, I also don't see any ports being mapped when I check with 'docker ps'.
(I would need to run 10 containers on the same box, so changing those ports is required).

Not sure how to accomplish this.

from unifi-docker.

jacobalberty avatar jacobalberty commented on June 19, 2024

@JohnnyMaccarone If you need to run 10 containers mapping all of those ports may be a bit heavier than you should be doing. You should look into some of the more advanced docker networking options. Specifically the macvlan networking driver allows you to give containers routable ips.

https://blog.docker.com/2016/12/understanding-docker-networking-drivers-use-cases/

from unifi-docker.

JohnnyMaccarone avatar JohnnyMaccarone commented on June 19, 2024

Thanks for your quick response !
I'll have a look into your suggestion.
Cheers.

from unifi-docker.

pfried avatar pfried commented on June 19, 2024

I did attach the container to a macvlan, a very helpful article on this issue:
http://collabnix.com/docker-17-06-swarm-mode-now-with-macvlan-support/

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.