So first you have to check whether you are using window, ubuntu or any other system.
This toturial is for window 10.
After then you can start installation just by clicking next and it will install in system.
Run this command in powershell as administrator to make sure that docker starts
& 'C:\Program Files\Docker\Docker\DockerCli.exe' -SwitchDaemon
Now go to docker engine in setting and make it true
Enable-WindowsOptionalFeature -Online -FeatureName $(“Microsoft-Hyper-V”, “Containers”) -All
If you want to run Powershell using as administrator. Then you have to download chocolo by this link and run
Check that choco is installed just by typing choco and if it is installed you will see the version
Now run docker run -d -p 80:80 docker/getting-started
If you find error Docker: "no matching manifest for windows/amd64 in the manifest list entries" then check
If found any error then check this solution 
 


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