https://github.com/giof71/rust-docker-hello-world
A simple Hello, world app written with Rust, to be compiled and executed using the Rust official Docker image.
https://github.com/giof71/rust-docker-hello-world
docker hello-world helloworld helloworld-programs linux rust rust-lang starter windows windows-10
Last synced: about 1 month ago
JSON representation
A simple Hello, world app written with Rust, to be compiled and executed using the Rust official Docker image.
- Host: GitHub
- URL: https://github.com/giof71/rust-docker-hello-world
- Owner: GioF71
- License: apache-2.0
- Created: 2020-09-09T15:51:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-10T07:19:37.000Z (over 5 years ago)
- Last Synced: 2025-06-04T09:31:28.451Z (12 months ago)
- Topics: docker, hello-world, helloworld, helloworld-programs, linux, rust, rust-lang, starter, windows, windows-10
- Language: Dockerfile
- Homepage:
- Size: 8.79 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rust-docker-hello-world
A simple "hello-world" application built and run with rust through Docker.
## Disclaimer
This is just a simple hello-world app.
## Prerequisites
I am starting to explore Rust. I wanted to create a version of the ubiquitous hello-world which would build and run under Docker.
You need to have Docker up and running on a Linux/Windows machine. This might be useful if you simply cannot install Rust on your machine, but you are allowed to use Docker.
All of this has been tested on:
- Windows 10 with Docker Desktop
- Manjaro Linux (amd64)
As I test the unit and/or the scripts on more platforms, I will update this list.
## Usage on Windows
Compile the application by running
`build`
Then you can run the application by running
`run`
## Usage on Linux
Compile the application by running
`sh build.sh`
Then you can run the application by running
`sh run.sh`
## Conclusion
That's basically all.
I hope this helps you to get started with Rust using Docker.