This repository provides a collection of sample applications in different programming languages, along with Docker init support for each language. It's a great starting point for developers who want to quickly get familiar with Docker init on various programming languages.
This repository includes sample applications in the following programming languages:
Before getting started, make sure you have the following tools installed on your system:
- Download and Install Docker
- Your preferred code editor or IDE for the specific language you are working with.
To get started with the sample apps, follow these steps:
- Clone this repository to your local machine:
git clone https://github.com/dockersamples/docker-init-demos.git
- Navigate to the folder for the specific programming language you want to explore (e.g.,
nodejs
,python
,rust
, orgo
).
cd docker-init-demos.git
Each language folder contains a sample project. To build and run the Docker container, use the following commands:
docker init
docker compose up -d --build
After running the container, you can access the sample app in your web browser by visiting http://localhost:3000/.
Here's a list of the sample applications available in each language folder:
- Node.js: A simple "Hello, Docker!" web application using Express.js
- Python: A basic "Hello, Docker!" Web application
- Rust: A command-line application that prints "Hello, Docker!" to the console
- Go: A minimal web server that responds with "Hello, Docker!" to HTTP requests
Feel free to explore each folder and modify the sample apps to experiment with Docker and your preferred language.
If you would like to contribute to this repository by adding more sample applications, improving documentation, or fixing issues, feel free to open a pull request. We welcome contributions from the community!
This repository is licensed under the MIT License