일상 코딩
[링크] [GCP]VM(Ubuntu OS) Docker 설치 및 포트 열기 본문
GCP ( Google Cloud Platform )/Docker 세팅
[링크] [GCP]VM(Ubuntu OS) Docker 설치 및 포트 열기
polarcompass 2022. 10. 7. 20:28728x90
https://blog.dalso.org/google-cloud-platform-2/nas-project/8618
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
// 끊어서 진행
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
//
sudo apt-get update && sudo apt-get install docker-ce docker-ce-cli containerd.io
sudo docker -v
sudo systemctl enable docker && sudo service docker start
// 도커 이미지 다운로드
sudo docker pull bigdatamlops/flutter-nestjs-server
// 도커 이미지 실행 명령어
sudo docker run -p 3000:3000 -d bigdatamlops/flutter-nestjs-server
GCP 포트 열기
https://minimin2.tistory.com/173
728x90
'GCP ( Google Cloud Platform ) > Docker 세팅' 카테고리의 다른 글
[링크] GCP - Docker - MySQL 설치 및 연결 (0) | 2022.10.07 |
---|