It is currently Sun Jul 21, 2019 4:53 am
All times are UTC + 8 hours

Phlex and Docker

Docker containers wrap a piece of software in a complete filesystem that contains everything needed to run: code, runtime, system tools, system libraries – anything that can be installed on a server. This guarantees that the software will always run the same, regardless of its environment.

Phlex and Docker

Postby adrenalinenz » Thu Sep 06, 2018 9:46 am

Hi,

I'm trying to run Phlex ( https://github.com/d8ahazard/Phlex ) in docker, I've followed the instructions:

docker create --name=phlex \
-p 5666:5666 -p 5667:5667 \
-v /configpath:/config \
-e HTTPPORT=5666 \
-e HTTPSPORT=5667 \
-e FASTCGIPORT=9000 \
--privileged \
digitalhigh/phlex

When I go to my nas address using port 5667 or 5666 it's not working, I get site refused connection.

I'm new to docker so not sure if this is some issue with my docker or how it's setup. I have portainer running as well and have no issues accessing that.

Hopefully some useful information below so someone can help me:

root@NAS1: # docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a3425520b297 digitalhigh/phlex:latest "/init" 12 minutes ago Up 12 minutes 80/tcp, 443/tcp, 0.0.0.0:5666-5667->5666 -5667/tcp phlex
55051d91de14 portainer/portainer "/portainer" 3 days ago Up 21 minutes 0.0.0.0:9000->9000/tcp


root@NAS1: # iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-N DOCKER
-N DOCKER-ISOLATION-STAGE-1
-N DOCKER-ISOLATION-STAGE-2
-N DOCKER-USER
-A INPUT -j ACCEPT
-A FORWARD -j DOCKER-USER
-A FORWARD -j DOCKER-ISOLATION-STAGE-1
-A FORWARD -o docker0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -o docker0 -j DOCKER
-A FORWARD -i docker0 ! -o docker0 -j ACCEPT
-A FORWARD -i docker0 -o docker0 -j ACCEPT
-A DOCKER -d 172.17.0.2/32 ! -i docker0 -o docker0 -p tcp -m tcp --dport 9000 -j ACCEPT
-A DOCKER -d 172.17.0.3/32 ! -i docker0 -o docker0 -p tcp -m tcp --dport 5667 -j ACCEPT
-A DOCKER -d 172.17.0.3/32 ! -i docker0 -o docker0 -p tcp -m tcp --dport 5666 -j ACCEPT
-A DOCKER-ISOLATION-STAGE-1 -i docker0 ! -o docker0 -j DOCKER-ISOLATION-STAGE-2
-A DOCKER-ISOLATION-STAGE-1 -j RETURN
-A DOCKER-ISOLATION-STAGE-2 -o docker0 -j DROP
-A DOCKER-ISOLATION-STAGE-2 -j RETURN
-A DOCKER-USER -j RETURN
adrenalinenz
 
Posts: 4
Joined: Mon Feb 05, 2018 6:56 am

Return to Docker

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 1 guest