Docker image in Go, you can see my message.
116
This is a simple Go program that displays a message using Docker.
Before running this project, make sure you have Docker installed on your machine.
Follow these steps to run the program on your machine:
Open a terminal and run the following command to log in to your Docker Hub account:
docker login
Enter your Docker Hub username and password when prompted.
To download the go-hello-world image from Docker Hub, run this command:
docker pull felipe0806/go-hello-world:latest
Once the image is downloaded, you can run it in a container and expose port 8080 with the following command:
docker run -p 8080:8080 felipe0806/go-hello-world:latest
This command will run the container and expose port 8080 on your local machine.
Open your web browser and go to:
localhost:8080
You will see the message of my docker
Content type
Image
Digest
sha256:391bca95c…
Size
117.8 MB
Last updated
almost 2 years ago
docker pull felipe0806/go-hello-world