Home

How to INSTALL Docker

Docker has changed our lives, we dont have to deal with system break or installing specific libraries again and again, and to replicate the same stuff to work on another person pc irrespective of Windows, Linux or Mac we can be sure if his/her system can run docker = he definately can run my project.

But installing docker is tricky, we install it after months or years then we forget how we did it last time and thats fine. We developers work on a lot - so its fine to forget some stuff so to capture more and better stuff that we need in daily life. Okay so for those developers I am putting here the steps to setup docker easily on their system. Original documentation is also there but - phew its too long to be Read.

So here you go!

  
Official Documentation: Docker Convenience Script
	
	OR
  1. Right Click on This and then click "save link as..."
  2. Save the file with the name on your Desktop as "Anything.sh" (Just it should have sh as extension)
  3. Open Terminal on Desktop and do " sudo chmod +x Anything.sh "
  4. Now your file is ready to RUN.
  5. Simply do " ./Anything.sh "
  6. Thats it, your docker installation will begin and you can verify it by typing "docker" in your terminal.
For Windows there is Direct Installer for Docker Desktop Start Download for Windows
If want to run docker without "sudo" :P Error: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: If want to run docker without using sudo everytime - you need to add your user (who has root privileges) to docker group. For this run following command --- sudo groupadd docker sudo gpasswd -a $USER docker newgrp docker or (logout/login your system) docker run hello-world --- More Deep Info Here - about using docker w/o sudo Analogy to remember order port -p your's:docker's volume -v your's:docker's Few Other Important Commands docker exec -it bash docker exec -it python3 docker attach docker cp mycontainer:/filename.txt filename.txt Saving and Loading Image - Without Internet docker save -o docker save --output hello.tar colorapp docker load --input hello.tar Run Python with display docker run --rm -it --env="DISPLAY" --volume="$HOME/.Xauthority:/root/.Xauthority:rw" python