Docker execution memo summarized for myself

Reasons to write an article

I installed Docker on Windows Home, but after a month without touching it, I forgot various things, so I will write it as a memo. You will forget what you have studied unless you output it many times.

Environment etc.

Reference document

-** MSDN Tutorial: NET Core App Containerization ** This MSDN describes everything from creating a Docker file to executing images and containers. If you get lost in the basics, please see this article.

How to use Docker locally

  1. Run Docker Quickstart Terminal
  2. Check the saved image with docker images
  3. Create and start a container for the image specified by docker run {image name or id} The run command is a command that creates and starts.
  4. Stop with docker stop {container name or id}
  5. If you run the counter app created in the reference document, you can check the current count with docker attach {container name or id}.
  6. Delete the container specified by docker rm {container id or name}
  7. You can check the list of registered containers with docker ps -a. (If there is no -a option, only the one that is running is displayed)

Recommended Posts

Docker execution memo summarized for myself
docker memo
docker single container restart for myself
docker tutorial (memo)
Docker operation memo
Docker command memo
[Memo] docker summary
A memo for myself that object-oriented is something
Docker x Rails 6 (memo)
Docker Machine command memo
Recent (2020/08) Docker for Mac file access slow problem memo
(Memo) Java for statement
(For myself) Build gitlab with ubuntu18.04 + docker for home (Note)
Nested class (for myself)
Gradle settings memo (multi-project to all in one) for myself
Pytorch execution environment with Docker
Execution result memo of String.substring
Docker, docker-compose for server-side Kotlin
MySQL 5.7 (Docker) environment construction memo
Redmine (Docker) environment construction memo
Gradle TIPS collection (for myself)
Introducing "" Monitoring Tool "" for monitoring Docker
Install docker, docker-compose for debin10
Installing and building Docker (memo)
(For myself) Try creating a C # environment with docker + code-server, cloud9