GCP 우분투 도커 설치

2020. 6. 30. 20:17Development/Docker

공식 문서 참고

링크

도커 설치

apt update -y
apt install docker.io -y

비공개 GCR 이용을 위한 Cloud SDK 설치

# Add the Cloud SDK distribution URI as a package source
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list

# Import the Google Cloud Platform public key
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -

# Update the package list and install the Cloud SDK
sudo apt-get update && sudo apt-get install google-cloud-sdk


# SDK 초기화

gcloud init

이후 New Account => 웹 브라우저 인증 => Region 선택

gcloud auth configure-docker

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

MongoDB-Docker 백업  (0) 2020.06.25