You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docker-whoami/README.md

61 lines
2.0 KiB

7 years ago
# whoami multi-arch image
7 years ago
[![Build status](https://ci.appveyor.com/api/projects/status/bhma7tmx0eje73ao/branch/master?svg=true)](https://ci.appveyor.com/project/StefanScherer/whoami/branch/master)
7 years ago
[![Build Status](https://travis-ci.org/StefanScherer/whoami.svg?branch=master)](https://travis-ci.org/StefanScherer/whoami)
[![This image on DockerHub](https://img.shields.io/docker/pulls/stefanscherer/whoami.svg)](https://hub.docker.com/r/stefanscherer/whoami/)
7 years ago
## CI pipeline
![CI pipeline with Travis and AppVeyor](images/pipeline.png)
* AppVeyor CI
* Build Windows image for nanoserver 2016 SAC
* windows/amd64 10.0.14393.x
* Rebase this image to nanoserver:1709 SAC
* windows/amd64 10.0.16299.x
* Travis CI
* Matrix build for several Linux architectures
* linux/amd64
* linux/arm
* linux/arm64
* Create and push the manifest list
* preview of `docker manifest` command
7 years ago
## Linux
Simple HTTP docker service that prints it's container ID
$ docker run -d -p 8080:8080 --name whoami -t stefanscherer/whoami
736ab83847bb12dddd8b09969433f3a02d64d5b0be48f7a5c59a594e3a6a3541
$ curl http://localhost:8080
7 years ago
I'm 736ab83847bb running on linux/amd64
7 years ago
## Windows
10 years ago
Simple HTTP docker service that prints it's container ID
10 years ago
7 years ago
$ docker run -d -p 8080:8080 --name whoami -t stefanscherer/whoami
10 years ago
736ab83847bb12dddd8b09969433f3a02d64d5b0be48f7a5c59a594e3a6a3541
7 years ago
$ (iwr http://$(docker inspect -f '{{ .NetworkSettings.Networks.nat.IPAddress }}' whoami):8080 -UseBasicParsing).Content
7 years ago
I'm 736ab83847bb on windows/amd64
7 years ago
Used for a first
[swarm-mode demo](https://github.com/StefanScherer/docker-windows-box/tree/master/swarm-mode)
with Windows containers.
## Query all supported platforms
```
$ docker run --rm mplatform/mquery stefanscherer/whoami
Image: stefanscherer/whoami
* Manifest List: Yes
* Supported platforms:
- linux/amd64
- linux/arm/v6
- linux/arm64/v8
- windows/amd64:10.0.14393.1884
- windows/amd64:10.0.16299.19
```