Giter VIP home page Giter VIP logo

hello-world's Introduction

Maintained by: the Docker Community

This is the Git repo of the Docker "Official Image" for hello-world. See the Docker Hub page for the full readme on how to use this Docker image and for information regarding contributing and issues.

The full image description on Docker Hub is generated/maintained over in the docker-library/docs repository, specifically in the hello-world directory.

See a change merged here that doesn't show up on Docker Hub yet?

For more information about the full official images change lifecycle, see the "An image's source changed in Git, now what?" FAQ entry.

For outstanding hello-world image PRs, check PRs with the "library/hello-world" label on the official-images repository. For the current "source of truth" for hello-world, see the library/hello-world file in the official-images repository.


  • build status badge
  • build status badge
Build Status Badges (per-arch)
amd64 build status badge arm32v5 build status badge arm32v7 build status badge arm64v8 build status badge
i386 build status badge mips64le build status badge ppc64le build status badge riscv64 build status badge
s390x build status badge windows-amd64 build status badge put-shared build status badge

hello-world's People

Contributors

allir avatar chanezon avatar crafterkolyan avatar larryclaman avatar ncopa avatar ralph-tice avatar surfkansas avatar tfenster avatar thajeztah avatar tianon avatar yosifkit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hello-world's Issues

are you trying to connect to a tls-enabled daemon without tls

after executing $ sudo docker run hello-world that I get this message:
FATA[0000] post http:///var/run/docker.sock/v1.17/containers/create: dial unix /var/run/docker .sock: no such file or directory. are you trying to connect to a TLS-enabled daemon without TLS?

How can I do?? help me

hello-world will not even run

When trying to get the simplest of things working on an "Docker Official Image" and it fails.

hello-world

The image will not start.

  • Docker desktop Version: 4.30.0 (149282)
  • Engine: 26.1.1
  • Compose: v2.27.0-desktop.2

Also tried as a pod in Kubernetes.

Add Windows Server 2019/RS5 to hello-world

library/hello-world currently support Windows Server 2016, 1709, and 1803.

Windows Server 2019 aka RS5 was (re-)released in November. The build number to reference is 10.0.17763.1

The same build number will enable support for the semi-annual channel Windows Server 1809 release.

standard_init_linux.go:178: exec user process caused "permission denied"

I installed docker on CentOS and run hello-world:
standard_init_linux.go:178: exec user process caused "permission denied"
And my docker info is like below:

Containers: 1
Running: 0
Paused: 0
Stopped: 1
Images: 2
Server Version: 17.03.0-ce
Storage Driver: overlay
Backing Filesystem: xfs
Supports d_type: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 977c511eda0925a723debdc94d09459af49d082a
runc version: a01dafd48bc1c7cc12bdb01206f9fea7dd6feb70
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 3.10.0-327.36.2.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 989.2 MiB
Name: msr-sto-sensulab01.ubisoft.org
ID: 5X77:PYEW:ZX5D:UUP2:GSDJ:GGON:HCHS:MSFG:VNSN:WKQK:SMRM:R3FR
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false

and my VM info:

3.10.0-327.36.2.el7.x86_64 #1 SMP Mon Oct 10 23:08:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

I tried moby/moby#30097 and it didn't work
Is there anything wrong?

Can not create a statically-linked rust executable with scratch image

I am trying to create an image with my binary file (written in Rust) but I get different errors. This is my Dockerfile:

FROM scratch
COPY binary /
COPY .env /
COPY cert.pem /etc/ssl/
ENV RUST_BACKTRACE 1
CMD /binary

Building finishes fine but when I try to run it I get this:

$ docker run binary
docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"/bin/sh\": stat /bin/sh: no such file or directory": unknown.
ERRO[0000] error waiting for container: context canceled 

And this:

$ docker run binary /binary
standard_init_linux.go:195: exec user process caused "no such file or directory"

I have no idea what to do. The error message looks very odd to me. According to the official docker documentation it must work so.

System info: latest archlinux, docker:

Docker version 18.02.0-ce, build fc4de447b5

P.S. Tested the same with C++ - works fine, with both clang and gcc.

how can I download a docker cert?

I am having trouble getting to the hub so I can download containers.
Can I do this externally or can a cert be provided. I am running RHEL 7.2 and firewall is disabled.

Error:
[root@localhost log]# docker run hello-world
Unable to find image 'hello-world:latest' locally
Trying to pull repository registry.access.redhat.com/hello-world ...
unknown: Not Found
Trying to pull repository docker.io/library/hello-world ...
Pulling repository docker.io/library/hello-world
Error while pulling image: Get https://index.docker.io/v1/repositories/library/hello-world/images: x509: certificate signed by unknown authority
docker: Error while pulling image: Get https://index.docker.io/v1/repositories/library/hello-world/images: x509: certificate signed by unknown authority.
See '/usr/bin/docker-current run --help'.
[root@localhost log]#

I have read several articles about this, and I think getting a cert would be the easiest.
Is that possible?

Thanks
Alice

Docker error with Ubuntu 18.04: Unable to find image 'hello-world:latest' locallylatest: Pulling from library/hello-world

Hello!

I have an error with sudo docker run hello-world.

Unable to find image 'hello-world:latest' locallylatest: Pulling from library/hello-world0e03bdcc26d7: 
Pull completeDigest: sha256:8e3114318a995a1ee497790535e7b88365222a21771ae7e53687ad76563e8e76Status: 
Downloaded newer image for hello-world:latestdocker: Error response from daemon: error creating aufs
 mount to /var/lib/docker/aufs/mnt/6f2ef73fd936d1ffafa9f74a9e5c4c1f84e39c834f353bfecd3058a8118b074a-init:
 mount target=/var/lib/docker/aufs/mnt/6f2ef73fd936d1ffafa9f74a9e5c4c1f84e39c834f353bfecd3058a8118b074a-
init data=br:/var/lib/docker/aufs/diff/6f2ef73fd936d1ffafa9f74a9e5c4c1f84e39c834f353bfecd3058a8118b074a-
init=rw:/var/lib/docker/aufs/diff/5a41b049b22d26cd27db5b028fe3cdb8e6adbbb9ca40cb37ac45f224750a4001=ro+wh,
dio,xino=/dev/shm/aufs.xino: invalid argument.See 'docker run --help'.

I downloaded ubuntu-18.04.4-desktop-amd64 and I ran it with VirtualBox.

When my image is created I did the following steps to install Docker:

$ sudo apt-get remove docker docker-engine docker.io containerd runc
$ sudo apt-get update
$ sudo apt-get upgrade

$ sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

$ sudo apt-key fingerprint 0EBFCD88

pub   rsa4096 2017-02-22 [SCEA]
      9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88
uid           [ unknown] Docker Release (CE deb) <[email protected]>
sub   rsa4096 2017-02-22 [S]

$ sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"

 $ sudo apt-get update
 $ sudo apt-get install docker-ce docker-ce-cli containerd.io

$ sudo docker run hello-world

When I run the command again I have the error again:

sudo docker run hello-worlddocker: Error response from daemon: error creating aufs mount to /var/lib/docker/aufs/mnt/349d0344aaee6daf7e89bc8771b89c5c0daedd6ae872100030f59bd2f69bf209-init: mount target=/var/lib/docker/aufs/mnt/349d0344aaee6daf7e89bc8771b89c5c0daedd6ae872100030f59bd2f69bf209-init data=br:/var/lib/docker/aufs/diff/349d0344aaee6daf7e89bc8771b89c5c0daedd6ae872100030f59bd2f69bf209-init=rw:/var/lib/docker/aufs/diff/5a41b049b22d26cd27db5b028fe3cdb8e6adbbb9ca40cb37ac45f224750a4001=ro+wh,dio,xino=/dev/shm/aufs.xino: invalid argument.See 'docker run --help'.

I don't understand what can be the problem? I read a LOT of forums and questions on Internet but none helped me. Can you guys please help me :O

Docker is well installed, because when I put docker --version I get: Docker version 19.03.8, build afab8b7b0

ARM compatible version of this hello-world image?

When running the make test-integration-cli on ARM this hello-world Docker image is used from the Dockerhub.

It fails with the following error:

Docker daemon 2.048 kB\rSending build context to Docker daemon 2.048 kB\r\r\nStep 1 : FROM hello-world:frozen\n ---> 91c95931e552\nStep 2 : RUN /hello\n ---> Running in 0b36a68d0e07\n\x1b[91mexec format error\n\x1b[0m[8] System error: exec format error\n"

It seems that the binary needs to be made specifically for the armhf architecture.

Made a first draft of an armhf compatible hello-world image here: https://github.com/hypriot/armhf-hello-world

The question is, if this should be merged with this repo or if it should remain separate?

error in macro expansion for DOCKER_GREETING variable

$ git version
git version 2.28.0.windows.1

$ git log -1
commit 9ef4804c28679a416a445397f9b2e2b105005151 (HEAD -> master, origin/master, origin/HEAD)
Merge: eff5b9a bf64724
Author: yosifkit <[email protected]>
Date:   Tue Apr 28 18:13:18 2020 -0700

    Merge pull request #73 from docker-library/github-actions

    Add initial GitHub Actions CI

$ docker --version
Docker version 19.03.12, build 48a66213fe


$ docker build -t hello-world -f Dockerfile.build .

<snip>
Step 7/16 : RUN set -ex;        make clean all test             TARGET_ARCH='amd64'          CROSS_COMPILE='x86_64-linux-gnu-'
 ---> Running in 1773fb3468c3
+ make clean all test TARGET_ARCH=amd64 CROSS_COMPILE=x86_64-linux-gnu-
rm -vrf amd64/hello-world/hello /usr/src/hello/musl/amd64
mkdir -p '/usr/src/hello/musl/amd64'
cd '/usr/src/hello/musl/amd64' && '/usr/local/src/musl/configure' --disable-shared --prefix='/usr/src/hello/musl/amd64/prefix' > /dev/null
make -C '/usr/src/hello/musl/amd64' -j '2' install > /dev/null
/usr/src/hello/musl/amd64/prefix/bin/musl-gcc -Os -fdata-sections -ffunction-sections -s -Wl,--gc-sections -static \
        -o 'amd64/hello-world/hello' \
        -D DOCKER_IMAGE='"hello-world"' \
        -D DOCKER_GREETING="\"$(cat 'greetings/hello-world.txt')\"" \
        -D DOCKER_ARCH='"amd64"' \
        'hello.c'
<command-line>: warning: missing terminating " character
<command-line>: error: missing terminating " character
hello.c:18:2: note: in expansion of macro 'DOCKER_GREETING'
  DOCKER_GREETING "\n"
  ^~~~~~~~~~~~~~~
hello.c:18:18: error: expected ',' or ';' before string constant
  DOCKER_GREETING "\n"
                  ^~~~
make: *** [Makefile:21: amd64/hello-world/hello] Error 1
The command '/bin/sh -c set -ex;        make clean all test             TARGET_ARCH='amd64'  CROSS_COMPILE='x86_64-linux-gnu-'' returned a non-zero code: 2

any ideas why the 'make' would have an issue with this variable setting?

Workaround - edit the Makefile and remove the line for "-D DOCKER_GREETING=" and repeat the docker build command.

microk8s on Ubuntu with raspberry 4 hardware (ARMv8)

I can't make your hello-world run on Ubuntu 20.04.1 LTS with microk8s running on raspberry Pi 4b model (ARMv8)
The pod get created but then "CrashLoopBackOff" forever.
microk8s is using containerd, is there some incompatibility with docker engine for which your image is probably tested/running ?

Add Windows 1803/RS4 to hello-world

hello-world currently support Windows Server 2016 (10.0.14393.2189) and 1709 (10.0.16299.371). 1803 aka RS4 was released in April. The version number to reference is 10.0.17134.1.

Given Windows' limited image compatibility docker run hello-world currently fails on a Windows Server 1803 VM (the hellacious error message is fixed in a later version of Docker):

PS C:\Users\cfischer> docker version
Client:
 Version:       17.06.2-ee-10
 API version:   1.30
 Go version:    go1.8.7
 Git commit:    66261a0
 Built: Fri Apr 27 00:42:30 2018
 OS/Arch:       windows/amd64

Server:
 Engine:
  Version:      17.06.2-ee-10
  API version:  1.30 (minimum version 1.24)
  Go version:   go1.8.7
  Git commit:   66261a0
  Built:        Fri Apr 27 00:54:58 2018
  OS/Arch:      windows/amd64
  Experimental: false
PS C:\Users\cfischer>
PS C:\Users\cfischer> cmd /c ver
Microsoft Windows [Version 10.0.17134.1]
PS C:\Users\cfischer>
PS C:\Users\cfischer> docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
bce2fbc256ea: Pull complete
83eec61707e8: Pull complete
eaac79658f14: Pull complete
09da50837088: Pull complete
Digest: sha256:f5233545e43561214ca4891fd1157e1c3c563316ed8e237750d59bde73361e77
Status: Downloaded newer image for hello-world:latest
C:\Program Files\Docker\docker.exe: Error response from daemon: container 74958c143d725d0afc2d457469c9303fc98accb9ff6167173a0826cf7092e071 encountered an error during CreateContainer: failure in a Windows system call: The operating system of the container does not match the operating system of the host. (0xc0370101) extra info: {"SystemType":"Container","Name":"74958c143d725d0afc2d457469c9303fc98accb9ff6167173a0826cf7092e071","Owner":"docker","IsDummy":false,"VolumePath":"\\\\?\\Volume{fed9d49d-1b9f-4195-a532-4a08096ef85f}","IgnoreFlushesDuringBoot":true,"LayerFolderPath":"C:\\ProgramData\\docker\\windowsfilter\\74958c143d725d0afc2d457469c9303fc98accb9ff6167173a0826cf7092e071","Layers":[{"ID":"30dde3bb-dfd7-53ac-96f3-a72d0a74d5e6","Path":"C:\\ProgramData\\docker\\windowsfilter\\581d60f1bdd23652eccde984720201a17d24e880fe57030591965a0c50d1816a"},{"ID":"a242d455-1535-5222-b594-f055e0145de0","Path":"C:\\ProgramData\\docker\\windowsfilter\\58cd8bc47436da9a913e63e2f1d0e8882d7d515c165cc556ed3915798d5047ef"},{"ID":"0e0b7890-2f62-5496-8449-b481acdfe937","Path":"C:\\ProgramData\\docker\\windowsfilter\\c6d9b7edd9318d701b880e1c1f2b05473cb2b0b1ebdf46b707ab186b78950605"},{"ID":"78ad4f8e-a3e8-5934-98eb-e7baaeb7b86f","Path":"C:\\ProgramData\\docker\\windowsfilter\\4f1427a6a56a9830796b02ea09dcbe751bf11453f5048af770d86c7866f59e89"}],"HostName":"74958c143d72","MappedDirectories":[],"HvPartition":false,"EndpointList":["bae01aa3-448c-4b28-9860-3f8018bdc303"],"Servicing":false,"AllowUnqualifiedDNSQuery":true}.

Hello world fails to set itself up while more complicated containers work fine

Running docker run hello-world fails while it is setting itself up but I can easily run things like library/postgres:9.3 and other complicated containers. Error follows:

[rwm972@rwm972-1 docker]$ docker -D run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from docker.io/hello-world
a8219747be10: Pull complete
91c95931e552: Already exists
docker.io/hello-world:latest: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security.
Digest: sha256:aa03e5d0d5553b4c3473e89c8619cf79df368babd18681cf5daeb82aab55838d
Status: Downloaded newer image for docker.io/hello-world:latest
DEBU[0004] framesize: 11
Timestamp: DEBU[0004] framesize: 1154
2015-04-30 10:56:53.775232006 -0400 EDT
Code: System error

Message: [/usr/bin/tar -cf /var/lib/docker/tmp/639334c2fcd5e2c8c2b70923f0c23c90d1557973fcd48c595d47965970474eb6748690236/_tmp.tar -C /var/lib/docker/btrfs/subvolumes/639334c2fcd5e2c8c2b70923f0c23c90d1557973fcd48c595d47965970474eb6/tmp .] failed: /usr/bin/tar: /var/lib/docker/btrfs/subvolumes/639334c2fcd5e2c8c2b70923f0c23c90d1557973fcd48c595d47965970474eb6/tmp: Cannot open: No such file or directory
/usr/bin/tar: Error is not recoverable: exiting now
: exit status 2

Frames:


0: setupRootfs
Package: github.com/docker/libcontainer
File: rootfs_linux.go@30


1: Init
Package: github.com/docker/libcontainer.(*linuxStandardInit)
File: standard_init_linux.go@52


2: StartInitialization
Package: github.com/docker/libcontainer.(*LinuxFactory)
File: factory_linux.go@223


3: initializer
Package: github.com/docker/docker/daemon/execdriver/native
File: init.go@35


4: Init
Package: github.com/docker/docker/pkg/reexec
File: reexec.go@26


5: main
Package: main
File: docker.go@29


6: main
Package: runtime
File: proc.go@63


7: goexit
Package: runtime
File: asm_amd64.s@2232
DEBU[0004] Corrupted prefix: []
DEBU[0004] [hijack] End of stdout
DEBU[0004] End of CmdRun(), Waiting for hijack to finish.
FATA[0004] Error response from daemon: : exit status 2
[rwm972@rwm972-1 docker]$

Add build instructions

Could some instructions be added how to build this project into a docker container? I figured out eventually that update.sh was doing some building, which i didn't expect from the name "update".

I used this project as an example project to test my gitlab registry. There i need to build the image with a specific name so it can upload to the registry later. I didn't see an option to build with a specific name (as part of update.sh ?) so i renamed (docker tag) the image afterwards of which i'm also not sure if it's the best way to go.

Docker Hub -> Docker Store?

You mentioned in second step:
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
isn't it now Docker Store?

hello world issue

I have installed docker properly and have Linux terminal also installed freshly in my windows10 pro system. After installing all things, when I started using my system, it shows me that the docker is still starting. I was not able to see any message regarding my hello world command in CMD.
How to fix this problem.Please, anyone, tell me

make it a non-root container

Hm, maybe offer a non-root version? Or put a note somewhere, I was wondering ahy my first try to deploy on my shiny new kubernetes cluster doesn't work for quite a while :-D

Windows version - bad example

The windows version of hello-world displays:

To try something more ambitious, you can run a Windows Server container with:
 PS C:\> docker run -it mcr.microsoft.com/windows/servercore powershell

The suggested example doesn't work, as servercore does not supply a latest tag.
I suggest it be modified to read:
docker run -it mcr.microsoft.com/windows/servercore:ltsc2019 powershell

no matching manifest for linux/amd64 in the manifest list entries

$ docker pull arm32v7/hello-world
Using default tag: latest
latest: Pulling from arm32v7/hello-world
no matching manifest for linux/amd64 in the manifest list entries

Trying to pull the hello-world image for arm for the first time. I'm able to pull other arm containers just fine, seems specifically like a problem with this one.

Not able to pull hello world

When I run this command docker pull hello-world I get this:

Using default tag: latest
latest: Pulling from library/hello-world
no matching manifest for windows/amd64 10.0.17134 in the manifest list entries

Any advise?

standard_init_linux.go:175: exec user process caused "permission denied"

I can run other images successfully but when running the hello-world, it fails:

[root@vm ~]# docker run hello-world
standard_init_linux.go:175: exec user process caused "permission denied"

And my docker info is like below:
[root@vm ~]# docker info
Containers: 9
Running: 1
Paused: 0
Stopped: 8
Images: 3
Server Version: 1.12.0-rc5
Storage Driver: btrfs
Build Version: Btrfs v3.17
Library Version: 101
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: host bridge null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp selinux
Kernel Version: 4.1.12-37.6.1.el7uek.x86_64
Operating System: Oracle Linux Server 7.0
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 7.135 GiB
Name: slc00bpv.us.oracle.com
ID: QY4D:Q26Y:RHTS:QNUR:NEKC:LSBB:LPR7:ECKG:DRID:EQPJ:3MHG:Z5K6
Docker Root Dir: /scratch/docker
Debug Mode (client): false
Debug Mode (server): false
Http Proxy: http://www-proxy.us.oracle.com:80
Https Proxy: http://www-proxy.us.oracle.com:80
No Proxy: localhost,127.0.0.0/8,.us.oracle.com,.oraclecorp.com,/var/run/docker.sock
Registry: https://index.docker.io/v1/
WARNING: bridge-nf-call-ip6tables is disabled
Insecure Registries:
dte.docker.oraclecorp.com
127.0.0.0/8

And my vm info is

[root@vm ~]# uname -a
Linux vm 4.1.12-37.6.1.el7uek.x86_64 #2 SMP Thu Jul 28 10:59:49 PDT 2016 x86_64 x86_64 x86_64 GNU/Linux

Could you please help me on this?

the docker official image hello-world keep reporting 'Back-off restarting failed container' with kubectl command

Im keep seeing 'Back-off restarting failed container' when try to use docker official image https://hub.docker.com/_/hello-world to create any pod\deployment, switch to other images like 'nginx' everything will work well, Please help, thanks.

both 'last' and 'linux' tag was tried and got same failure for the image

[Event logs for kubectl creation]

root@ip-10-229-68-221:~# kubectl get event --watch LAST SEEN TYPE REASON OBJECT MESSAGE 24s Normal Scheduled pod/helloworld-656898b9bb-98vrv Successfully assigned default/helloworld-656898b9bb-98vrv to kind-lab-worker 23s Normal Pulling pod/helloworld-656898b9bb-98vrv Pulling image "hello-world:linux" 16s Normal Pulled pod/helloworld-656898b9bb-98vrv Successfully pulled image "hello-world:linux" in 7.371731633s 1s Normal Created pod/helloworld-656898b9bb-98vrv Created container hello-world 0s Normal Started pod/helloworld-656898b9bb-98vrv Started container hello-world 1s Normal Pulled pod/helloworld-656898b9bb-98vrv Container image "hello-world:linux" already present on machine 13s Warning BackOff pod/helloworld-656898b9bb-98vrv Back-off restarting failed container 24s Normal Scheduled pod/helloworld-656898b9bb-sg6fs Successfully assigned default/helloworld-656898b9bb-sg6fs to kind-lab-worker 23s Normal Pulling pod/helloworld-656898b9bb-sg6fs Pulling image "hello-world:linux" 13s Normal Pulled pod/helloworld-656898b9bb-sg6fs Successfully pulled image "hello-world:linux" in 9.661065021s 13s Normal Created pod/helloworld-656898b9bb-sg6fs Created container hello-world 13s Normal Started pod/helloworld-656898b9bb-sg6fs Started container hello-world 13s Normal Pulled pod/helloworld-656898b9bb-sg6fs Container image "hello-world:linux" already present on machine 11s Warning BackOff pod/helloworld-656898b9bb-sg6fs Back-off restarting failed container 24s Normal Scheduled pod/helloworld-656898b9bb-vhhfm Successfully assigned default/helloworld-656898b9bb-vhhfm to kind-lab-worker 23s Normal Pulling pod/helloworld-656898b9bb-vhhfm Pulling image "hello-world:linux" 18s Normal Pulled pod/helloworld-656898b9bb-vhhfm Successfully pulled image "hello-world:linux" in 5.17232683s 3s Normal Created pod/helloworld-656898b9bb-vhhfm Created container hello-world 2s Normal Started pod/helloworld-656898b9bb-vhhfm Started container hello-world 3s Normal Pulled pod/helloworld-656898b9bb-vhhfm Container image "hello-world:linux" already present on machine 2s Warning BackOff pod/helloworld-656898b9bb-vhhfm Back-off restarting failed container 24s Normal SuccessfulCreate replicaset/helloworld-656898b9bb Created pod: helloworld-656898b9bb-vhhfm 24s Normal SuccessfulCreate replicaset/helloworld-656898b9bb Created pod: helloworld-656898b9bb-sg6fs 24s Normal SuccessfulCreate replicaset/helloworld-656898b9bb Created pod: helloworld-656898b9bb-98vrv 24s Normal ScalingReplicaSet deployment/helloworld Scaled up replica set helloworld-656898b9bb to 3 79s Normal Killing pod/nginx Stopping container nginx 0s Warning BackOff pod/helloworld-656898b9bb-98vrv Back-off restarting failed container 0s Normal Pulled pod/helloworld-656898b9bb-sg6fs Container image "hello-world:linux" already present on machine 0s Normal Created pod/helloworld-656898b9bb-sg6fs Created container hello-world 0s Normal Started pod/helloworld-656898b9bb-sg6fs Started container hello-world 0s Warning BackOff pod/helloworld-656898b9bb-sg6fs Back-off restarting failed container 0s Warning BackOff pod/helloworld-656898b9bb-vhhfm Back-off restarting failed container 0s Warning BackOff pod/helloworld-656898b9bb-98vrv Back-off restarting failed container 0s Warning BackOff pod/helloworld-656898b9bb-sg6fs Back-off restarting failed container 0s Normal Pulled pod/helloworld-656898b9bb-vhhfm Container image "hello-world:linux" already present on machine 0s Normal Pulled pod/helloworld-656898b9bb-98vrv Container image "hello-world:linux" already present on machine 0s Normal Created pod/helloworld-656898b9bb-vhhfm Created container hello-world 1s Normal Created pod/helloworld-656898b9bb-98vrv Created container hello-world 0s Normal Started pod/helloworld-656898b9bb-vhhfm Started container hello-world 0s Normal Started pod/helloworld-656898b9bb-98vrv Started container hello-world 0s Warning BackOff pod/helloworld-656898b9bb-98vrv Back-off restarting failed container 0s Warning BackOff pod/helloworld-656898b9bb-vhhfm Back-off restarting failed container 0s Normal Pulled pod/helloworld-656898b9bb-sg6fs Container image "hello-world:linux" already present on machine 0s Normal Created pod/helloworld-656898b9bb-sg6fs Created container hello-world 0s Normal Started pod/helloworld-656898b9bb-sg6fs Started container hello-world 0s Warning BackOff pod/helloworld-656898b9bb-sg6fs Back-off restarting failed container 0s Warning BackOff pod/helloworld-656898b9bb-vhhfm Back-off restarting failed container 0s Warning BackOff pod/helloworld-656898b9bb-98vrv Back-off restarting failed container 0s Warning BackOff pod/helloworld-656898b9bb-sg6fs Back-off restarting failed container 0s Warning BackOff pod/helloworld-656898b9bb-vhhfm Back-off restarting failed container 0s Warning BackOff pod/helloworld-656898b9bb-98vrv Back-off restarting failed container 0s Warning BackOff pod/helloworld-656898b9bb-sg6fs Back-off restarting failed container 0s Warning BackOff pod/helloworld-656898b9bb-98vrv Back-off restarting failed container 0s Normal Pulled pod/helloworld-656898b9bb-vhhfm Container image "hello-world:linux" already present on machine 0s Normal Created pod/helloworld-656898b9bb-vhhfm Created container hello-world 0s Normal Started pod/helloworld-656898b9bb-vhhfm Started container hello-world 0s Warning BackOff pod/helloworld-656898b9bb-vhhfm Back-off restarting failed container 0s Warning BackOff pod/helloworld-656898b9bb-sg6fs Back-off restarting failed container 0s Normal Pulled pod/helloworld-656898b9bb-98vrv Container image "hello-world:linux" already present on machine 0s Normal Created pod/helloworld-656898b9bb-98vrv Created container hello-world 0s Normal Started pod/helloworld-656898b9bb-98vrv Started container hello-world 0s Warning BackOff pod/helloworld-656898b9bb-98vrv Back-off restarting failed container 0s Warning BackOff pod/helloworld-656898b9bb-vhhfm Back-off restarting failed container 0s Normal Pulled pod/helloworld-656898b9bb-sg6fs Container image "hello-world:linux" already present on machine 0s Normal Created pod/helloworld-656898b9bb-sg6fs Created container hello-world 0s Normal Started pod/helloworld-656898b9bb-sg6fs Started container hello-world 0s Warning BackOff pod/helloworld-656898b9bb-sg6fs Back-off restarting failed container

Docker images pull issue

Two hello-world images have the same image ID and same tag, but different digests

When I docker pull hello-world, I got the image with a digest of f9dfddf63636d84ef479d645ab5885156ae030f611a56f3a7ac7f2fdd86d7e4e

$ docker pull hello-world
Using default tag: latest
latest: Pulling from library/hello-world
Digest: sha256:f9dfddf63636d84ef479d645ab5885156ae030f611a56f3a7ac7f2fdd86d7e4e
Status: Image is up to date for hello-world:latest
docker.io/library/hello-world:latest

I was using a Mac, but when I docker inspect hello-world:latest, I saw the os/arch is linux/amd64

    ...
    "Architecture": "amd64",
    "Os": "linux",
    ...

So I went to https://hub.docker.com/_/hello-world/?tab=tags and found strangely enough, the latest hello-world for linux/amd64 has a digest of 92c7f9c92844bbbb5d0a101b22f7c2a7949e40f8ea90c8b3bc396879d95e899a

So I pulled down this image as well

$ docker pull hello-world@sha256:92c7f9c92844bbbb5d0a101b22f7c2a7949e40f8ea90c8b3bc396879d95e899a
sha256:92c7f9c92844bbbb5d0a101b22f7c2a7949e40f8ea90c8b3bc396879d95e899a: Pulling from library/hello-world
Digest: sha256:92c7f9c92844bbbb5d0a101b22f7c2a7949e40f8ea90c8b3bc396879d95e899a
Status: Downloaded newer image for hello-world@sha256:92c7f9c92844bbbb5d0a101b22f7c2a7949e40f8ea90c8b3bc396879d95e899a
docker.io/library/hello-world@sha256:92c7f9c92844bbbb5d0a101b22f7c2a7949e40f8ea90c8b3bc396879d95e899a

Surprisingly, I ended up with two images with the same tag, same image ID, but different digests.

$ docker image ls --digests
REPOSITORY                    TAG                 DIGEST                                                                    IMAGE ID            CREATED             SIZE
hello-world                   latest              sha256:92c7f9c92844bbbb5d0a101b22f7c2a7949e40f8ea90c8b3bc396879d95e899a   fce289e99eb9        15 months ago       1.84kB
hello-world                   latest              sha256:f9dfddf63636d84ef479d645ab5885156ae030f611a56f3a7ac7f2fdd86d7e4e   fce289e99eb9        15 months ago       1.84kB

Are these two images the same one? How can I uniquely address an image if I want consistency across my team?

Equivalent image for debugging, which doesn't exit

This is the official, tiny and dead-simple "hello world" image for docker, with 1B+ downloads, so I hope it's ok to post here. Everyone knows about this image, and uses it for quick debugging.

Is there an equivalent official tiny image that doesn't exit - i.e. doesn't do anything, just stays running until stopped?

Windows RS1 and RS3 images missing in manifest

See docker/for-win#2695 (comment)

Looks like the image for Windows 2016 ("RS1") is missing; I did a docker manifest inspect hello-world and see only RS4 and RS5 is in the list;

docker manifest inspect hello-world:latest

....

      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1357,
         "digest": "sha256:04efdea6de289ea7f3d9ddbb8317a82bcd0cfefb397a68a42d53af0737fa74b8",
         "platform": {
            "architecture": "amd64",
            "os": "windows",
            "os.version": "10.0.17134.706"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1046,
         "digest": "sha256:057a2292b00553b4ab8e090487aaa8068bf8da87abd563875ffcbfadaf2d03ac",
         "platform": {
            "architecture": "amd64",
            "os": "windows",
            "os.version": "10.0.17763.437"
         }

Only 17134 (RS4) and 17763 (RS5) are present.

(Referring to the list of versions in https://github.com/Microsoft/hcsshim/blob/bb6b18cdb527145747b43a770efdea50491dd1d5/osversion/windowsbuilds.go#L5-L9)

package osversion

const (

	// RS2 was a client-only release in case you're asking why it's not in the list.
	RS1 = 14393
	RS3 = 16299
	RS4 = 17134
	RS5 = 17763
)

Ubuntu 16.14 (Xenial) not allowing to run hello-word with Client.timeout exceeded while awaiting headers

It seems I have installed Docker for ubuntu properly, as I can see the help menu when invoking docker. However, when I run:

sudo docker run hello-world
I get:

Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'docker run --help'.

Also, if I try instead a prebuilt docker image for using ROS Indigo on Ubuntu Xenial with
https://github.com/jbohren/rosdocked
Then I get similar error, what can it be? See command and error below:

sudo ./build.sh ros_docker_image
Sending build context to Docker daemon 84.48 kB
Step 1/19 : FROM ros:indigo
Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Any hints?

Add minimal docker compose

hello world is nice minimal example for a Dockerfile. Could the most minimal file for docker-compose be added too ?

Getting error while docker run hello-world

PS C:\Windows\system32> docker images hello-world
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.38/images/json?filters=%7B%22reference%22%3A%7B%22hel
lo-world%22%3Atrue%7D%7D: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon
configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docke
r daemon is not running.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.