Container does not start with docker-compose

(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.

  1. Kitami-style illustration IT school basic information engineer Reiwa 2002 Kindle version
  2. [Try and understand] How Linux works-Basic knowledge of OS and hardware learned through experiments and illustrations Kindle version
  3. Docker / Kubernetes Practical Container Development Introduction Kindle Edition
  4. (This is the site) Introduction Docker https://y-ohgi.com/introduction-docker/

Container does not start with docker-compose

Container environment -macOS catalina 10.15.7 -Docker version 19.03.13 -docker desktop version 2.4.0.0 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

Solution

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

Recommended Posts

Container does not start with docker-compose
MySQL container does not start in Docker
Terminal does not start
Start k3s with docker-compose
The story when the container does not start up with docker-compose up and an error occurs
If the DB container does not start with Initializing database files
Docker Compose does not start with docker.credentials.errors.InitializationError error message
When the server does not start with rails s
[Linux] Start Apache container with Docker
What I did when the DB did not start with docker-compose up
[Rails] Video does not play with video_tag
docker-compose Rebuild and start Only one container
Spring Boot 2.0.0 does not start built-in tomcat
.sql file does not run in docker-compose
[NetBeans] Story when it does not start
.sql file does not run in docker-compose
Container does not start with docker-compose
Eclipse does not start after Java 11 is installed
What to do when is invalid because it does not start with a'-'
Bundle install with docker + rails6 does not reflect gem
Localhost3000 does not start up in Docker / Rails development.
Automatically start the container
Sidekiq-limit_fetch does not work
Docker for Windows: MySQL container does not start when migrating from Hyper-v to WSL2
The story that led to solving the error because postgres did not start with docker-compose up
Wait for the container service to start with docker healthcheck
How to get the log when install4j does not start
Run batch with docker-compose with Java batch
Start Apache Solr with Embedded.
bundle install does not install mysql2
Cannot communicate in docker-compose container
Ruby version does not switch
Lombok not working with Gradle5
Container management with ECS + CodePipline
Docker-compose deploying Neo4j with APOC
Intent-filter does not respond with callback URL of Twitter OAuth authentication
How to fix the problem that Aptana Studio does not start