Cloud native applications are packaged, distributed, and run in containers. Docker is a key container technology. This video shows how a Docker container for a Go microservice can be run locally. It also shows how ENV variables, port mappings, and resource constraints can be specified.
- Hi and welcome back to Cloud Native Go.…My name is Leander Reimer and I'm happy to be your host.…So this video is all about running…containerized Go Microservices Locally.…So in this video we are going to take a look at…how I can run a Docker image locally.…And we want to run the Docker image we've built previously.…I'm going to show you how I can specify invariable,…environment variables and ports on a command line,…we will talk about starting,…stopping and restarting running containers,…and finally, I'm going to show you…how I can add CPU and memory constraints to your container.…
So this is quite some stuff, so let's get started.…Let's switch your console here.…So remember, in the previous video…we've filled our Cloud Native Go Microservice image.…So you see here...…Here, our images we've filled previously.…So what we want to do now, well,…it's basically, that this image run.…
So will we use the docker run command for this?…So let's see what's going on in this line.…So we used "docker run -it",…it's we going to attach the "t" to "i" to it,…
This course was created and produced by Packt Publishing. We are honored to host this training in our library.
- Implementing Go HTTP Server
- JSON marshalling and unmarshalling of Go structs
- Implementing a simple REST API
- Using Docker workflows and commands
- Building a naïve Docker image
- Running a containerized Go microservice
- Kubernetes architecture and concepts
- Deploying a Go microservice to Kubernetes
- Implementing service descriptors
- Performing rolling updates