연두색연필
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

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

LimePencil's Log

DevOps/Docker

[Docker 배우기] Section 3. Docker Run

2023. 12. 21. 22:28

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

 

docker run with tag: by putting: after the image name allows for the specification of version/tag

  • if not specified, the latest tag is used

docker run -i: open the container with an interactive mode where input is possible

 

docker run -it: open the container with an interactive mode where input is possible and the console turns into a pseudo-terminal

 

docker run -p [local port]:[internal port]: maps the port to an internal port

 

docker run -v [local directory]:[internal directory]: maps the volume to an internal volume so that the data will not be erased even if after the container is exited

 

docker inspect: used to find details about a container

 

docker logs: allows to view the logs of a container

  • useful for background running 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 2. Docker Commands  (0) 2023.12.20
[Docker 배우기] Section 1. Introduction  (0) 2023.12.19
    'DevOps/Docker' 카테고리의 다른 글
    • [Docker 배우기] Section 5. Docker Compose
    • [Docker 배우기] Section 4. Docker Images
    • [Docker 배우기] Section 2. Docker Commands
    • [Docker 배우기] Section 1. Introduction
    연두색연필
    연두색연필
    ML, Programming, PS, 삶의 순간을 기록

    티스토리툴바