Sign inSign up

felipe0806/csharp-hello-word

By felipe0806

•Updated almost 2 years ago

Hellow, this is a Docker with a message in C#

Image
0

10K+

felipe0806/csharp-hello-word repository overview

⁠C# - Hello World Docker

This is a simple C# program that displays a message using Docker.

⁠Prerequisites

Before running this project, make sure you have Docker installed on your machine.

  1. Install Docker⁠

⁠Steps to Run the Docker Image

Follow these steps to run the program on your machine:

⁠1. Log in to Docker (if you haven't already)

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.

⁠2. Pull the Image from Docker Hub

To download the csharp-hello-word image from Docker Hub, run this command:

docker pull felipe0806/csharp-hello-word:latest
⁠3. Run the Image in Docker

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/csharp-hello-word:latest

This command will run the container and expose port 8080 on your local machine.

⁠4. See the Message

Open your web browser and go to:

localhost:8080

You will see the message of my docker

Tag summary

Content type

Image

Digest

sha256:6e6465305…

Size

87 MB

Last updated

almost 2 years ago

docker pull felipe0806/csharp-hello-word