GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Think-Cube/docker-whoami-id: DockerWhoamiID: Docker container with a Go app to check and display container ID.

BranchesTags
Open more actions menu

Latest commit

 

History

64 Commits
64 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
pipelines
pipelines
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
http.go
http.go
 
 
[email protected]
[email protected]
 
 

Repository files navigation

DockerWhoamiID

DockerWhoamiID is a simple Go application within a Docker container designed to check and display the container ID.

Getting Started

Prerequisites

  • Docker installed on your machine

Build and Run

  1. Clone the repository:

    git clone https://github.com/Think-Cube/DockerWhoamiID.git
    
  2. Build the Docker image:

    docker build -t dockerwhoamiid .
    
  3. Run the Docker container:

    docker run -p 8000:8000 dockerwhoamiid
    

The application will be accessible at http://localhost:8000.

Dockerfile

The Dockerfile defines the build process for the application. It uses a multi-stage build, first building the Go binary and then creating a lightweight image to run the application.

http.go

The http.go file contains the Go source code for the simple application. It listens on a specified port and responds with the container's hostname.

[email protected]

The [email protected] file is a systemd service unit for running the Docker container as a service.

License

This project is licensed under the MIT License.

Contribution

Feel free to contribute by opening issues or pull requests. Your feedback and improvements are highly appreciated!

About

DockerWhoamiID: Docker container with a Go app to check and display container ID.

Topics

containeridgocontainerwhoamidockercodeiddockeridcheckdockerinspectiddockerverifyidgocontainerididcheckergodockerwhoamidockerappwhoamiindocker

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.