Docker is a set of the platform as service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels. Official site: https://www.docker.com/

🔍 What do you find here?


Tooling

❯ docker run --name foo -e POSTGRES_PASSWORD=foobar -p port:port -d postgres
❯ docker ps //actives images
❯ docker ps -a //all images
❯ docker rm ID //delete a container
❯ docker system prune //delete all images
❯ docker logs ID //log from image
❯ docker start ID/container name //start container
❯ docker stop ID/container name //stop container

Basic Concepts

<aside> 📌 ❯ image: available service ❯ container: image instance (environments) ❯ docker registry: we can check it on the docker hub ❯ dockerfile: recipe of an image ❯ lsof -i :8080: checks available port

</aside>