Home  >  Q&A  >  body text

How to deploy pyspider on docker

What should I do if the webUI cannot be seen when deploying pyspider on docker? How to change the port 0.0.0.0:5000 when pyspider is running on docker to a local host URL that can be accessed remotely?

天蓬老师天蓬老师2685 days ago857

reply all(2)I'll reply

  • 黄舟

    黄舟2017-05-16 13:19:38

    You can do port mapping when docker runs, just map the 5000 port in docker to the designated port of the local machine. You can also view the specific intranet IP of the container through docker inspect pyspidercontainer, and then access it on this machine through the intranet IP + 5000 port

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-16 13:19:38

    Use -p 5000:5000 to map the specified port command of this machine

    reply
    0
  • Cancelreply