In this video, you’ll learn how to build and run Docker containers on Google Cloud Platform (GCP) using a simple, hands-on approach.
Some useful commands:
1. Check if docker already installed in the server:
docker --version
2. Build:
- docker build -t node-app:0.1 .
- docker images : show the image created
3. Run:
- docker run -p 4000:80 --name my-app -d node-app:0.1
- docker ps : show running containers
- docker logs [container_id]
4. Stop and remove the container:
- docker stop my-app
- docker rm my-app
- docker rmi node-app:0.1
If you find this helpful, please like, subscribe, and share!
#Docker #GCP #GoogleCloud #Containers #DataEngineering #DataWithMasudur
Download
0 formats
No download links available.
GCP Docker Tutorial | Build & Run Containers on Google Cloud | NatokHD