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

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

LimePencil's Log

[Docker 배우기] Section 7. Docker Engine, Storage, and Networking
DevOps/Docker

[Docker 배우기] Section 7. Docker Engine, Storage, and Networking

2023. 12. 21. 23:33

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

 

Docker Engine

Docker Engine is composed of:

  • Docker CLI: running command
    • does not have to be on the same machine with other parts
      • can use the docker -H option to connect to the remote docker-engine
  • REST API: interact with docker Deamon
  • Docker Deamon: running in the background to execute tasks

PID: id for a process that is unique to the process

  • PID can have the same name for both the system and the container, but the PID in the container is changed into a different PID on the system

There is no limit to how much a container can utilize the resources.

  • using --cpus and --memory in the docker run can limit the resources used by a container

Docker Storage

By using layered architecture, it greatly reduces the storage size by reusing the existing layer.

 

When a container is running, a new layer called “container layer” is put on top of other layers where modifications can happen.

  • The container layer is read/write while image layers are read only.
    • To modify a file in image layers, it is copied to the container layer before writing

docker volume: used to create volume in the docker file system which can be connected to the container layer later on

  • mounting volume without creating it creates the
  • docker run -v [local]:[internal]

Docker Network

Mapping the network of the container to the host allows it to share the same port with the host.

 

docker network create: used to create another internal network within the docker host.

 

docker network ls: lists all network

 

By using docker inspect, the network of a container can be checked.

 

Docker has a built-in DNS server that allows to access another container by name and not internal IP addresses

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

[Docker 배우기] Section 9. Container Orchestration - Docker Swarm & Kubernetes  (0) 2023.12.22
[Docker 배우기] Section 8. Docker on Mac & Windows  (1) 2023.12.21
[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
    'DevOps/Docker' 카테고리의 다른 글
    • [Docker 배우기] Section 9. Container Orchestration - Docker Swarm & Kubernetes
    • [Docker 배우기] Section 8. Docker on Mac & Windows
    • [Docker 배우기] Section 6. Docker Registry
    • [Docker 배우기] Section 5. Docker Compose
    연두색연필
    연두색연필
    ML, Programming, PS, 삶의 순간을 기록

    티스토리툴바