'C:\Program Files\Docker\Docker\DockerCli.exe' -SwitchDaemon
show a volume details
docker volume inspect volumename
find the php.ini
php --ini
C:\ProgramData\DockerDesktop
cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini && \
sed -i -e "s/^ *memory_limit.*/memory_limit = 8G/g" /usr/local/etc/php/php.ini
php -r "echo ini_get('memory_limit').PHP_EOL;"
increase memory
/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=16384
/sbin/mkswap /var/swap.1
/sbin/swapon /var/swap.1
Build the docker image from a yaml file.
docker-compose build
6). Check the built image as:
docker images
7). Run the containers from built image as:
docker-compose up -d
8). Check the running docker containers by command:
docker-compose ps
open where var folder is
explorer.exe .
https://www.section.io/engineering-education/dockerized-php-apache-and-mysql-container-development-environment/
docker ps
To show Running Containers use command docker ps
https://hub.docker.com/r/alexcheng/magento2
https://github.com/scandipwa/magento-docker
https://github.com/markshust/docker-magento
https://plumrocket.com/learn/devilbox-docker-wsl2
https://plumrocket.com/learn/devilbox-docker-wsl2#step-6-install-docker-and-docker-compose-in-ubuntu-1
anees
Asdf123
sudo apt-get install docker compose
List of all extension in docker for php
php -m
delete all unused containers
docker system prune -a
https://github.com/mage2click/docker-magento/blob/develop/compose/magento-2/docker-compose.yml