经过查看官方文档, 因为我使用的是 python 较高版本, 存在兼容问题, 解决方法
修改基础镜像版本
代码如下:
- FROM python:2.7-slim-stretch
- LABEL AUTHOR="dalongrong"
- LABEL EMAIL="[email protected]"
- RUN apt-get update && apt-get install -y --reinstall build-essential \
- && pip install circus circus-web chaussette \
- && apt-get remove -y --purge build-essential \
- && rm -rf /var/lib/apt/lists/*
说明
暂时对于 python 3, 其他版本的没有测试, 根据官方文档应该是支持到 3.3 GitHub 代码上有
关于 3.7 的 tox 测试, 具体还得再仔细看看源码, 分析下原因
参考资料
- https://github.com/circus-tent/circus
- https://github.com/rongfengliang/circus-docker
来源: http://www.bubuko.com/infodetail-3087963.html