I have been trying to build a docker service which would run django. but keep getting
docker.errors.DockerException: Error while fetching server API version: HTTPConnection.request() got an unexpected keyword argument 'chunked'
Dockerfile
FROM python:3.7-alpine
USER root
ENV pythonunbuffered 1
RUN mkdir app
COPY ./new /app
COPY ./requirements.txt /requirements.txt
RUN pip install -r /requirements.txt
WORKDIR /app
RUN adduser -D user
USER user
cmd ['python','manage.py','runserver']
docker-compose
version: "3"
services:
app:
build:
context: .
ports:
- "8000:8000"
volumes:
- "./src:/app"
command: >
sh -c "python manage.py runserver 0.0.0.0:8000"
Is there a connection error?why does this keep happening?