我正在使用Ubuntu 16.04 VM,并尝试通过Docker容器运行Django应用。我已成功验证我的网站正在运行。如果我只是在机器上命令,它就会运行。但是,当我使用我的应用程序构建图像并运行容器时,它不起作用。我的Dockerfile末尾有此CMD。CMD ["python", "manage.py", "runserver", "my_VM_IP:8000]"它给我一个错误Performing system checks...System check identified no issues (0 silenced).June 21, 2018 - 20:50:44Django version 1.11.13, using settings 'datahttptools.settings'Starting development server at http://myVMip:8000/Quit the server with CONTROL-C.Error: That IP address can't be assigned to.我正在通过谷歌搜索尝试所有可能的解决方案,但无法弄清楚。
添加回答
举报
0/150
提交
取消