Docker. #ТСОКРМ
 
 

Сюда собраны ссылки, примеры команд и кода по технологии Docker

#Docker #ТСОКРМ

~

ISSUE SLOW DOCKER

https://stackoverflow.com/questions/62154016/docker-on-wsl2-very-slow

\\wsl$

~

 

docker exec -it container_name_or_id bash

 

docker run image-name

 

docker container inspect container_name_or_id

 

docker stop container_name_or_id

 

hostname

 

hostname -i

 

docker run -d --name container_name image-name

 

docker run -p 8080:80 image-name

 

docker run -v ${PWD}:/srv/alina -p 8080:80 image-name

 

docker run -it --rm image-name

 

docker container inspect container_name_or_id

 

 

FROM python:alpine
WORKDIR /app
COPY .
CMD ["python", “main.py”]

 

 

docker build

 

docker build . -t my-calendar:4.1.13

 

docker compose up

 

docker compose down

 

docker compose up -d --build

 

docker logs container_name_or_id