본문 바로가기
devops/docker

맥 도커(docker) 설치

by anjulia 2021. 10. 7.

 

파일 다운로드

https://hub.docker.com/editions/community/docker-ce-desktop-mac

 

Docker Desktop for Mac by Docker | Docker Hub

We and third parties use cookies or similar technologies ("Cookies") as described below to collect and process personal data, such as your IP address or browser information. You can learn more about how this site uses Cookies by reading our privacy policy

hub.docker.com

 

 

 

 

 

다운로드 받은 도커프로그램을 실행하고 나서 터미널 창을 연다.

 

우분투 이미지 파일을 다운로드

 

docker run ubuntu:20.04

 

 

 

도커 컨테이너를 생성

 


docker run --restart always --name ubunut_20.04 -dt ubuntu:20.04

 

 

 

 


docker ps

 

현재 실행중인 도커 컨테이너 목록을 보여준다.

 

 

도커 실행

 


docker run --rm -it ubuntu:20.04 /bin/bash

                                                           (띄어쓰기)

 

 

 

 

도커앱에서도 ubuntu20.04 버전이 설치된 것을 확인할 수 있다.