Commit Graph

9 Commits

Author SHA1 Message Date
Nikolay Korolev 8cec84c2e4
Remove magic constant in syscall 2020-01-20 16:42:45 +03:00
Tianon Gravi 7ecae69780 Convert from glibc-based binaries to musl-based binaries
The intent of the previous implementation was to avoid libc, but it turns out that just invoking a syscall without libc is complicated (see https://github.com/docker-library/hello-world/pull/62#issuecomment-568573535 for details).

On the other hand, my personal machine can cross-compile all of musl in ~30s per architecture, which is pretty reasonable, and the resulting binary sizes are only around ~10k each, and I was able to do so successfully for every architecture we currently support.
2019-12-30 16:06:25 -08:00
Tianon Gravi b715c35271 Update to the "get started" guide instead and update all binaries/text files
(Invoked "./update.sh")
2018-09-05 09:55:12 -07:00
Aðalsteinn Rúnarsson a805b6cc5d Update examples url as userguide url is no longer valid 2018-09-05 15:33:10 +00:00
surfkansas 46fef0ce2e
Update hello.c
Changed URL in splash text to point to hub instead of cloud, in reference to issue #45
2018-03-29 16:18:01 -05:00
Tianon Gravi c83a065a24 Add "arch" to the produced output
```console
$ ./amd64/hello-world/hello

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://cloud.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/engine/userguide/

```
2017-11-20 07:03:38 -08:00
Patrick Chanezon 1f13a5bc3b fixed message, Hub to cloud, Hub account to Docker ID 2017-01-11 16:44:50 -08:00
Tianon Gravi 85fd7ab65e Switch to the C version officially, and make some minor modifications to ensure cross-architecture compatibility is maximized 2016-06-29 16:31:30 -07:00
Natanael Copa f55431e897 Replace with portable version in C
Build a minimal version in C instead of assembly so it easily can be
ported to other archs.

This statically linked C version builds a binary that is 1472 bytes.

fixes #7
2016-06-29 15:48:47 -07:00