리눅스

Docker / Ubuntu 설치 (맥 OS) / Docker hub repository 생성

maverick11471 2024. 9. 25. 10:21

Docker 설치

1. Docker 회원가입

https://hub.docker.com/

 

Docker Hub Container Image Library | App Containerization

Increase your reach and adoption on Docker Hub With a Docker Verified Publisher subscription, you'll increase trust, boost discoverability, get exclusive data insights, and much more.

hub.docker.com

 

 

2. Docker Desktop 다운로드

https://docs.docker.com/desktop/install/mac-install/

 

Mac

Install Docker for Mac to get started. This guide covers system requirements, where to download, and instructions on how to install and update.

docs.docker.com

 


Ubuntu 설치

  - 터미널에 아래와 같이 입력 후 엔터

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
docker run -it ubuntu bash

 

4. Ubuntu 실행

  - 터미널 실행

docker run -it ubuntu bash

 


Docker Hub Repository 생성

 

 - (주의) repository 이름은 이미지 이름과 동일해야 한다!

 

[터미널]

docker login : 소셜 로그인 한 상태로는 터미널에 docker login 만 치면 로그인이 된다.