Docker: Docker 자동 설치를 위한 Shell Script 사용법

2026. 3. 18. 12:40·🐳Docker

Docker에서 제공하는 shellscript로 docker engine 설치

# docker 에서 제공하는 shell script를 이용한 자동 설치.

curl -fsSL https://get.docker.com -o get-docker.sh
# shell script 내용 확인 후 변경 가능.
sudo vi get-docker.sh
# 실행 권한 부여
chmod +x get-docker.sh
# 설치.
sudo sh get-docker.sh

만약 Docker가 설치가 안된다면..

Base.repo를 바꿔보자

[base]
name=CentOS-$releasever - Base
baseurl=http://vault.centos.org/7.9.2009/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
[updates]
name=CentOS-$releasever - Updates
baseurl=http://vault.centos.org/7.9.2009/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
[extras]
name=CentOS-$releasever - Extras
baseurl=http://vault.centos.org/7.9.2009/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://vault.centos.org/7.9.2009/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
[contrib]
name=CentOS-$releasever - Contrib
baseurl=http://vault.centos.org/7.9.2009/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
저작자표시 비영리 변경금지 (새창열림)

'🐳Docker' 카테고리의 다른 글

Docker: NVIDIA GPU로 Docker 컨테이너 실행하기  (0) 2026.03.18
Docker: Docker 명령어 자동완성 설정하기  (0) 2026.03.18
Docker: 컨테이너와 VM 가상화 이해하기  (0) 2026.03.18
Docker: Docker와 컨테이너의 중요성  (0) 2026.03.17
Docker: CentOS7 환경 구축하기  (0) 2026.03.17
'🐳Docker' 카테고리의 다른 글
  • Docker: NVIDIA GPU로 Docker 컨테이너 실행하기
  • Docker: Docker 명령어 자동완성 설정하기
  • Docker: 컨테이너와 VM 가상화 이해하기
  • Docker: Docker와 컨테이너의 중요성
Diven
Diven
  • Diven
    Diven
    Diven
  • 전체
    오늘
    어제
    • 분류 전체보기 (110) N
      • ☁️Cloud (21) N
        • AWS (2)
        • Alibaba (14) N
        • OCI (1)
        • AWS: Certified Solution Arc.. (0)
        • AWS: Certificate Advanced N.. (2) N
      • 📊DB (13)
        • MongoDB (8)
        • MariaDB (2)
        • PostgreSQL (2)
        • MySQL (1)
      • 🧑🏽‍💻Dev:Lang (9)
        • C++ (0)
        • GO (1)
        • Python (8)
      • ⚙️DevOps (4)
        • CICD (0)
        • Jenkins (4)
      • 🐳Docker (15)
      • 🪢laC (0)
      • ⚓K8s (7)
      • 🐧Linux (25)
      • 🖥️Monitoring (10)
        • Grafana (1)
        • Prometheus (6)
        • Loki (1)
        • ELK (2)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    Cloud
    db
    mariadb
    mongoDB
    alb
    linux
    Python
    k8s
    docker
    Alibaba
    AWS
    PolarDB
    alertmanager
    MySQL
    NGINX
    jenkins
    SSL
    centOS7
    알리바바 클라우드
    prometheus
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.6
Diven
Docker: Docker 자동 설치를 위한 Shell Script 사용법
상단으로

티스토리툴바