Це стара версія документу!
docker container ls --filter "status=running" --format 'table {{.ID}}\t{{.Names}}\t{{.Status}}\t{{.Image}}'
docker inspect container_name|grep LogPath
Once a week stop using caching and update all layers (–pull –no-cache):
docker build --pull --no-cache -t image-tag .
``` # base FROM python:3.8.3 as base COPY ./requirements.txt / RUN pip wheel –no-cache-dir –no-deps –wheel-dir /wheels -r requirements.txt
# stage FROM python:3.8.3-slim RUN apt-get update && \
apt-get -y install netcat && \ apt-get clean
WORKDIR /usr/src/app COPY –from=base /wheels /wheels COPY –from=base requirements.txt . RUN pip install –no-cache /wheels/* COPY . /usr/src/app CMD gunicorn -b 0.0.0.0:5000 manage:app ```