연두색연필
LimePencil's Log
연두색연필
전체 방문자
오늘
어제

About Me

  • GitHub
  • Instagram
  • Gmail

인기 글

  • 분류 전체보기 (70)
    • Machine Learning (3)
      • MNIST (2)
    • PS & Algorithm (9)
    • Web (4)
      • HTML (1)
      • JavaScript (3)
    • Rust (2)
      • The Rust Programming Langua.. (2)
    • 논문 리뷰 (12)
      • Reinforcement Learning (10)
      • Computer Vision (2)
    • DevOps (17)
      • Docker (9)
      • Kubernetes (8)
    • Development (6)
      • SQL (6)
    • 잡다한 것들 (15)
      • 부스트캠프 AI Tech 4기 (13)

최근 댓글

Tag

  • 쿠버네티스
  • 백준
  • docker
  • Kubernetes
  • 도커
  • ML
  • 부스트캠프
  • K8s
  • 파이썬
  • Python
03-19 11:04
hELLO · Designed By 정상우.
연두색연필

LimePencil's Log

DevOps/Docker

[Docker 배우기] Section 2. Docker Commands

2023. 12. 20. 19:28

Docker for the Absolute Beginner - Hands On - DevOps | Udemy

 

docker run: runs the container

  • downloads the image if it is not locally stored
  • appending a command behind allows execution of the command after running the container
  • running the container with -d tag allows it to run in the background and not on the console

docker ps: lists current running containers

  • by adding -a, it also shows stopped or exited containers

docker stop: stops a running container by ID or name

docker rm: remove a container

  • not able to be seen with docker ps -a

docker images: lists current downloaded images

 

docker rmi: removes downloaded image by name

 

docker pull: downloads an image without running it

 

The container runs as long as the process inside is running. The completed process exits the container.

 

docker exec: executes the command to a running container

 

docker attach: attaches to a running background container

'DevOps > Docker' 카테고리의 다른 글

[Docker 배우기] Section 6. Docker Registry  (0) 2023.12.21
[Docker 배우기] Section 5. Docker Compose  (0) 2023.12.21
[Docker 배우기] Section 4. Docker Images  (0) 2023.12.21
[Docker 배우기] Section 3. Docker Run  (0) 2023.12.21
[Docker 배우기] Section 1. Introduction  (0) 2023.12.19
    'DevOps/Docker' 카테고리의 다른 글
    • [Docker 배우기] Section 5. Docker Compose
    • [Docker 배우기] Section 4. Docker Images
    • [Docker 배우기] Section 3. Docker Run
    • [Docker 배우기] Section 1. Introduction
    연두색연필
    연두색연필
    ML, Programming, PS, 삶의 순간을 기록

    티스토리툴바