When I start Docker container I get
OSError: Multiple exceptions: [Errno 111] Connect call failed ('::1', 6379), [Errno 111] Connect call failed ('127.0.0.1', 6379)
You can only have a single
CMD statement. To start both
python inside a single container you'll need to define a script or run a tool like
supervisord to manage your processes. https://docs.docker.com/engine/admin/multi-service_container/ explains some options and also gives examples. In your case I would give the approach with a shell script a try. The Phusion base image https://github.com/phusion/baseimage-docker is a more advanced alternative, starting each process via init service, but might be overkill for your use case.