after reread and relearn your dockerfile again it works with some modification with python image (installed gunicorn from pip install not from apt install, and port set into 8000, port 80 not work) docker run -p 80:80 imageid [2018-01-07 01:02:10 +0000] [8] [INFO] Starting gunicorn 19.7.1 [2018-01-07 01:02:10 +0000] [8] [ERROR] Retrying in 1 second. [2018-01-07 01:02:11 +0000] [8] [ERROR] Retrying in 1 second. [2018-01-07 01:02:12 +0000] [8] [ERROR] Retrying in 1 second. [2018-01-07 01:02:13 +0000] [8] [ERROR] Retrying in 1 second. [2018-01-07 01:02:14 +0000] [8] [ERROR] Retrying in 1 second. starting gunicorn on 0.0.0.0:80... [2018-01-07 01:02:15 +0000] [8] [ERROR] Can't connect to ('0.0.0.0', 80)
here is the dockerfile that is work with python image cat <<EOF > Dockerfile FROM python:2.7 RUN apt update && \ apt install -y unzip wget python-pip RUN pip install gunicorn && \ groupadd -r web2py && \ useradd -m -r -g web2py web2py USER web2py RUN cd /home/web2py/ && \ wget -c http://web2py.com/examples/static/web2py_src.zip && \ unzip -o web2py_src.zip && \ rm -rf /home/web2py/web2py/applications/examples && \ chmod 755 -R /home/web2py/web2py WORKDIR /home/web2py/web2py EXPOSE 8000 CMD cd ~ && python /home/web2py/web2py/anyserver.py -s gunicorn -i 0.0.0.0 -p 8000 EOF cat Dockerfile docker build . docker images docker run -p 8000:8000 imageid thanks and best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.