Introduction to Docker (1) Frequently used commands

Help command
Image command

--docker images Display a list of local images --- a Show all images --- q Display the image ID ---- Digests Display a summary of images ---- no-trunc Display detailed information of the image

Container mand

--docker run [options] images [command] [args] Create a new container and start it ---- name: Specify the name of the container --d: Background execution --i: interactive, used with t --t: Set up a temporary terminal --P: Random port --p: Specify port - ip:hostPost:containePort - ip::containePort - hostPort:containePort - caontainePort

--Container end command --exit: Stop the container --Ctrl + p + q: Stop the temporary terminal. Do not stop the container.

--Start container --docker start [container ID or container name] --docker restart [container ID or container name]

--Container Stop --docker start [container ID or container name]

--Forced termination of container --docker kill [container ID or container name]

--Delete the stopped container --docker rm [container ID or container name] --Multiple deletion - docker rm -f $(docker ps -a -p) - docker ps -a -q | xargs docker rm

Frequently used commands

--docker run -d [images] run in background --docker logs -t -f --tail [Container ID] - t time - f fresh --tail What number is displayed

--docker top Container ID Display the process inside the container --docker inspect Container ID Display detailed information about Nobel inside the container

--docker attach container ID --docker exec -it container ID bin/bash --docker exec -it container ID shell command

--docker cp container ID: container internal path path

Recommended Posts

Introduction to Docker (1) Frequently used commands
Summary of frequently used Docker commands
Summary of frequently used commands in Rails and Docker
Introduction to Linux Container / Docker (Part 1)
git flow Frequently used commands Memo
Introduction to Linux Container / Docker (Part 2)
[Docker] Other frequently used (probably) Docker Instructions
Frequently used functions and commands of Xcode
Introduction of Docker Hub and commands Self-learning ①
Introduction to Docker / Kubernetes Practical Container Development
[Introduction to Docker] Official Tutorial (Japanese translation)
Introduction to Ruby 2
Introduction to SWING
Docker basic commands
Introduction to Micronaut 1 ~ Introduction ~
Introduction to migration
Introduction to java
Introduction to Doma
[Docker] Introduction to docker compose Basic summary of docker-compose.yml
Introduction to JAR files
Introduction of Docker --Part 1--
[Introduction to Docker x ECS] ECS deployment with docker compose up
Introduction to Ratpack (8)-Session
Introduction to RSpec 1. Test, RSpec
Docker terms and commands
Introduction to bit operation
Introduction to Ratpack (6) --Promise
Introduction to Ratpack (9) --Thymeleaf
Frequently used docker-compose command
Introduction to PlayFramework 2.7 ① Overview
Frequently used Java generics
Introduction to Android Layout
How to install Docker
Introduction to design patterns (introduction)
Introduction to javadoc command
Introduction to jar command
Introduction to Ratpack (2)-Architecture
Introduction to lambda expression
Introduction to RSpec 2. RSpec setup
Introduction to Keycloak development
I'll forget to look it up, so I've put together a list of frequently used Docker commands [updated from time to time]
A collection of commands that were frequently used on heroku
[Introduction to Docker] ~ The shortest explanation until starting jupyter lab ~
[Personal memo] Frequently used Java grammar updated from time to time
[Memo] Commands used when using Docker (stop container, delete, delete image)
Introduction to Design Patterns (Builder)
Docker Compose basics and commands
Introduction to RSpec 5. Controller specs
Introduction to RSpec 6. System specifications
Introduction to RSpec 3. Model specs
Introduction to Ratpack (5) --Json & Registry
[Docker] Introduction of basic Docker Instruction
Migrating from vargrant to docker
Introduction to Metabase ~ Environment Construction ~
Introduction to Ratpack (7) --Guice & Spring
(Dot installation) Introduction to Java8_Impression
Introduction to Design Patterns (Composite)
Introduction to Micronaut 2 ~ Unit test ~
Introduction to JUnit (study memo)
Introduction to Spring Boot ① ~ DI ~
Introduction to design patterns (Flyweight)