About simple operation of Docker

Purpose

Since I use Docker more often, I will leave a simple usage as a memorandum. Detailed operation

Docker simple commands

This section provides an example of using Docker's simple commands.

Check the container in process.
$ docker ps -a 

If there are any unused containers, delete them.
$ID of docker rm container

Mount a local folder so that the container can handle directly under the folder.
$ docker run -v Local folder path:Container folder path-it ubuntu 

Check if the container is in the process.
$ docker ps

If you want to leave the container, the shortcut "CTRL"+P+Q」
If you want to go back
$docker attach container ID

Check the image
$ docker images

If you have an unused image, delete it.
$ID of docker rmi image

Recommended Posts

About simple operation of Docker
About Docker
About Docker
About the operation of next () and nextLine ()
[Personal memo] About button (GUI) operation of Docker Desktop for Windows
About Docker capacity
Simple installation of nginx and Docker using ansible
About disconnect () of HttpURLConnection
Introduction of Docker --Part 1--
About selection of OpenJDK
About DI of Spring ①
Find out about Docker
About DI of Spring ②
About Java 10 Docker support
About form. ○○ of form_with
About @Accessors of Lombok
About the handling of Null
List of Docker commands that I often use (container operation)
[Swift] Simple implementation of UIImageView
Overview of Docker and containers
About an instance of java
Docker monitoring-explaining the basics of basics-
Basics of character operation (java)
[Docker] Introduction of basic Docker Instruction
About the description of Docker-compose.yml
Understand the basics of docker
I've only heard of Docker ...
[Swift] About asynchronous processing "Operation"
About size comparison of compareTo
About types of code coverage
About Docker Hub pull limit
About the operation of Java reading party BOF-held monthly since 1998
Memorandum of understanding about LOD.
About partial match of selector
About the behavior of ruby Hash # ==
About the basics of Android development
About fastqc of Biocontainers and Java
About Lambda, Stream, LocalDate of Java8
[Docker Network Chapter 2] Explanation of Docker Networking
About error handling of comment function
[Rails] About implementation of like function
[Docker Network Chapter 1] Explanation of Docker Networking
About binding of Spring AOP Annotation
Summary of frequently used Docker commands
About the role of the initialize method
About removeAll and retainAll of ArrayList
Think about the 7 rules of Optional
About image upload of jsp (servlet)
About Disk Cache of Glide 4 series
[Ruby] Review about nesting of each
[Docker] Operation up to container creation # 2
Explanation about Array object of Ruby
Docker [Batch deletion of <none> tags]
Summary about the introduction of Device
About the log level of java.util.logging.Logger
About Docker, disguise server and container