Category: Docker, containerization, shell

In this tutorial, I will tell you how to create a containerised Go application which is capable of executing shell commands. Once you get used to the workflow you could change application according to your preference and get the relevant output.

In Dockerfile you can change commands according to your scenario and here, I’m giving you a basic configuration file with all the essential commands to build our particular docker image.

In my case, go-app is the docker image name and using -t flag you can even add a tag to your docker image as below.

Also, you can use the --name flag to set a name for the container and in this case, go-c1 is the name of the container and at the end of the container name, you need to specify the docker image name which you used to create the docker container.

Related Articles