docker报错

最近学习docker的时候创建一个web项目:
[email protected]:~# docker pull training/webapp # 载入镜像
[email protected]:~# docker run -d -P training/webapp python app.py

访问报错:
code 400, message Bad request syntax (’\x16\x03\x01\x02\x00\x01\x00\x01\xfc\x03\x03
使用命令:docker logs -f 容器ID 查看日志信息
Docker报错:code 400, message Bad request syntax (‘\x16\x03\x01\x02\x00\x01\x00\x01\xfc\x03\x03\

原因

请求的时候路径错误,用了https:https://ip:端口
正确写法,用http:http://ip:端口/

相关文章:

  • 2021-08-08
  • 2021-10-13
  • 2022-01-11
  • 2021-12-18
  • 2021-10-06
  • 2021-12-27
  • 2021-12-28
  • 2021-06-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2021-12-25
  • 2021-10-27
相关资源
相似解决方案