(Digression) I touched docker for the first time and introduced it.
Beginners needed knowledge from the basics of networks and had a hard time. First, I will introduce the books I learned when introducing docker.
- Kitami-style illustration IT school basic information engineer Reiwa 2002 Kindle version
- [Try and understand] How Linux works-Basic knowledge of OS and hardware learned through experiments and illustrations Kindle version
- Docker / Kubernetes Practical Container Development Introduction Kindle Edition
- (This is the site) Introduction Docker https://y-ohgi.com/introduction-docker/
Container environment -macOS catalina 10.15.7 -Docker version 19.03.13 -docker desktop version 188.8.131.52 Rails + nginx + unicorn + mysql The cause was that unused data was accumulated in the background while I was typing commands many times by trial and error.
special thanks>> I referred to this article for environment construction. https://qiita.com/E6YOteYPzmFGfOD/items/509dbabeb20bf2487283 https://qiita.com/AK4747471/items/39ddacfde6a235103277
Command struck docker-compose build docker-compose up (container creation, execution) docker-compose down --volumes (Delete container, delete data of saved file specified outside docker at the same time) Delete the image by selecting the icon on docker desktop
The following command will delete all Docker images, including those that are not moving. docker stop $(docker ps -q) docker rm $(docker ps -aq) docker rmi $(docker images -q) https://qiita.com/suzy1031/items/1b4e1d717b6052a02307