Docker. #ТСОКРМ
 
 

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

#Docker #ТСОКРМ

 

Лучшее начало ever!

https://devops.tutorials24x7.com/blog/containerize-php-with-nginx-mysql-and-mongodb-using-docker-containers

https://devops.tutorials24x7.com/blog/containerize-laravel-with-nginx-mysql-and-mongodb-using-docker-containers

 

 

Вводный курс. Неплохо, но только про императивный стиль.

~

ISSUE SLOW DOCKER

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

 

~

Stop all containers

docker stop $(docker ps -a -q)

~

SSH into Docker Container

docker ps
docker exec -it container_name_or_id bash

SSH into Docker Container from Windows on WSL2

 

 

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

 

~