Docker
Docker helps developers bring their ideas to life by conquering the complexity of app development. Actively used by millions of developers around the world, Docker Desktop and Docker Hub provide unmatched simplicity, agility and choice
🌐 docker.com, docs
Getting to know
Components
Getting started
Docker Desktop
Docker on Windows
Go to Get started with Docker for Windows.
See WSL cheat sheet.
Installation on WSL 1 (Ubuntu)
Installing the Docker client on Windows Subsystem for Linux (Ubuntu)
Once docker is installed on Ubuntu, configure Docker on Windows to expose port 2375 and run:
docker images
#Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
docker -H localhost:2375 images
#Cannot connect to the Docker daemon at tcp://localhost:2375. Is the docker daemon running?
docker -H localhost:2375 images
#REPOSITORY TAG IMAGE ID CREATED SIZE
#ubuntu latest f975c5035748 4 weeks ago 112MB
Installation on WSL2
- Docker tutorial: How To Develop a Docker Application on Windows using WSL, Visual Studio Code, and Docker Desktop - July 28, 2021
Installation on Ubuntu
Playground
Tutorials
-
Hello world (will display "Hello from Docker!")
docker run hello-world
- Ubuntu bash
docker run -it ubuntu bash
apt-get update
apt-get upgrade
apt-get install apt-utils
apt-get install traceroute
traceroute www.google.fr
apt-get install wget
wget --spider http://example.com
Security
- snykblog - Docker security scanning cheatsheet 2021 - January 19, 2021
Recipes
- Intro Guide to Dockerfile Best Practices - July 02, 2019
- Get Ready for the Tech Preview of Docker Desktop for WSL 2 - July 18, 2019
- Debugging a weird 'file not found' error