We are going to create a Docker container that will act as an executable to process some image files. We are going to use Go (Golang) to write an image processing program. For this, we would be working with Docker VOLUME, ENTRYPOINT, and other Dockerfile instructions.
In this lesson, we are going to create a Docker container that will act as an executable to process some image files. We are going to use Go (Golang) to write an image processing program. For this, we would be working with Docker VOLUME, ENTRYPOINT, and other Dockerfile instructions.
In the previous lesson, we learned how to create a Docker image using a Dockerfile as well as creating and managing Docker containers. We discussed a few Dockerfile instructions such as
CMD, etc. and how they contribute to the image-building process.
In this lesson, we are going to discuss the
ENTRYPOINT instruction to create a Docker container that acts like an executable. We will also discuss how to share files between a Docker container and the host machine.
For this lesson, we are going to use Go (golang) to write an image processing program. Therefore, we would need a parent image with Go installation. We would be using the golang:1.15.6-alpine3.12 as a parent image for the image we are going to build in this lesson.
💡 If you are not familiar with Go (golang) programming language, I would recommend you to check out my articles on Go from the RunGo publication. It is a simple yet powerful programming language.
To install Go on your system, follow this official documentation. We are using Go v1.15.6 for this lesson and we are using the same version for the parent image. Local installation of Go is not necessary but we would want to test our Go program first before creating a Docker image.
Golang Web Development is the new trend globally. Get all the details about the Golang development here. Hire Golang Developers.
This article covers A-Z about the mobile and web app development process and answers your question on how long does it take to develop/build an app.
For a developer, becoming a team leader can be a trap or open up opportunities for creating software. Two years ago, when I was a developer, ... by Oleg Sklyarov, Fullstack Developer at Skyeng company
Go announced Go 1.15 version on 11 Aug 2020. Highlighted updates and features include Substantial improvements to the Go linker, Improved allocation for small objects at high core counts, X.509 CommonName deprecation, GOPROXY supports skipping proxies that return errors, New embedded tzdata package, Several Core Library improvements and more.
Following the second video about Docker basics, in this video, I explain Docker architecture and explain the different building blocks of the docker engine; docker client, API, Docker Daemon. I also explain what a docker registry is and I finish the video with a demo explaining and illustrating how to use Docker hub.