Modify ports for Docker on Mac

You need to use docker commands to modify HTTP and HTTPS ports.

Now, if we use HTTP port 80, HTTPS port 443, and we want to change 80 to 44, 443 to 344, UDP port group to 7900-8000, TCP port to 554 and 7777.

  1. stop control-hub container

    sudo docker container stop control-hub 
  2. re-create control-hub

    docker run --name control-hub -it -v /Applications/ddd/data:/data -v /Applications/ddd/log:/log -p 44:80 -p 1935:1935 -p 344:443 -p 554:554 -p 7777:7777 -p 7900-8000:7900-8000/udp -v /var/run/docker.sock:/var/run/docker.sock --restart unless-stopped -d magewell/control-hub:2.1.81