docker-airflow icon indicating copy to clipboard operation
docker-airflow copied to clipboard

Unable to see webUI on localhost

Open NishantNicsmart opened this issue 6 years ago • 5 comments

Hi Team, I pulled this docker image in my local laptop and tried running the below command as per the readme.md C:\Docker\docker-airflow-master\docker-airflow-master>docker run -d -p 8035:8035 puckel/docker-airflow webserver 596d39bc0b46b8ac6557a03192e19664b0731ab57d2cf59346004f6f0dce306a

C:\Docker\docker-airflow-master\docker-airflow-master>docker container ls CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 596d39bc0b46 puckel/docker-airflow "/entrypoint.sh webs" About a minute ago Up About a minute 5555/tcp, 8085/tcp, 8793/tcp, 0.0.0.0:8035->8035/tcp affectionate_pascal

But when I am logging as localhost:8035 it is not loading the webUI for airflow.

NishantNicsmart avatar Feb 05 '19 18:02 NishantNicsmart

Try -p 8035:8080 . Airflow's webserver runs on 8080 and not 8035, so you need to expose the container's 8080 on the hosts 8035

-p $HOSTPORT:$CONTAINERPORT

yampelo avatar Feb 11 '19 15:02 yampelo

Readme says to run docker run -d -p 8080:8080 puckel/docker-airflow webserver. I tried this image for the first time and this works fine, with the web UI on "localhost:8080".

cubranic avatar Feb 12 '19 21:02 cubranic

Same issue. Tried replacing 8080 with 8035 and I still get "The site cannot be reached"

axk7812 avatar May 30 '19 17:05 axk7812

So I'm using Docker Machine installed via Docker Toolbox vs what Docker recommends which is Docker Desktop. I've found that docker desktop is a PITA to install on Windows 10 and I couldn't get it to work.. Anyways if you've created your image using Docker Machine I found that if I do

$ docker-machine env

I get the result

export DOCKER_TLS_VERIFY="1" export DOCKER_HOST="tcp://192.168.99.100:2376" export DOCKER_CERT_PATH="C:\Users\axk7812.docker\machine\machines\default" export DOCKER_MACHINE_NAME="default" export COMPOSE_CONVERT_WINDOWS_PATHS="true" Run this command to configure your shell: eval $("C:\Program Files\Docker Toolbox\docker-machine.exe" env)

I can then grab the "DOCKER_HOST" ip address and replace the port number (2376) with the HOST port number that we used when we did our "docker run" command. The below address would then work it works like so (where 8035 is the host port number)

http://192.168.99.100:8035

Not sure why this works this way

I don't know if the OP's post was related to using docker-machine vs docker-desktop so I would not call this a closed issue.

axk7812 avatar May 30 '19 17:05 axk7812

Hey @axk7812

Are you able to access Airflow web UI?

mananshukla6 avatar Jul 16 '20 19:07 mananshukla6