docker / machine

Machine management for a container-centric world
https://docs.docker.com/machine/
Apache License 2.0
6.63k stars 1.97k forks source link

hello-world not running #4352

Closed jawdatt closed 6 years ago

jawdatt commented 6 years ago

Hello my system is running on centos 7 . However, following along from the hello-world example on the docker website, I can't see hello world. ~ $ docker run hello-world

Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world b901d36b6f2f: Pull complete 0a6ba66e537a: Pull complete Digest: sha256:8be990ef2aeb16dbcb9271ddfe2610fa6658d13f6dfb8bc72074cc1ca36966a7 Status: Downloaded newer image for hello-world:latest

Each time I run docker run hello-world, I see blank output but containers seem to be created: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 236125a0a4de hello-world "/hello" 8 hours ago Created focused_borg 361a1f77156e hello-world "/hello" 8 hours ago Created inspiring_galile When I attached to any containers the output is blank

docker version Client: Version: 17.12.0-ce API version: 1.35 Go version: go1.9.2 Git commit: c97c6d6 Built: Wed Dec 27 20:10:14 2017 OS/Arch: linux/amd64

Server: Engine: Version: 17.12.0-ce API version: 1.35 (minimum version 1.12) Go version: go1.9.2 Git commit: c97c6d6 Built: Wed Dec 27 20:12:46 2017 OS/Arch: linux/amd64 Experimental: false

and the status is

systemctl status docker.service ● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled) Drop-In: /etc/systemd/system/docker.service.d └─https-proxy.conf Active: active (running) since Mon 2018-01-01 23:10:58 UTC; 7h ago Docs: https://docs.docker.com Main PID: 393 (dockerd) Memory: 67.2M CGroup: /system.slice/docker.service ├─393 /usr/bin/dockerd └─441 docker-containerd --config /var/run/docker/containerd/containerd.toml

Jan 01 23:10:55 centos dockerd[393]: time="2018-01-01T23:10:55.284564209Z" level=info msg="Removing stale sandbox 1b0e7f...567f5)" Jan 01 23:10:55 centos dockerd[393]: time="2018-01-01T23:10:55.353508502Z" level=info msg="Removing stale endpoint focus...173b0)" Jan 01 23:10:55 centos dockerd[393]: time="2018-01-01T23:10:55.569466600Z" level=info msg="Fixing inconsistent endpoint_...tual=1" Jan 01 23:10:55 centos dockerd[393]: time="2018-01-01T23:10:55.840264596Z" level=info msg="Default bridge (docker0) is a...ddress" Jan 01 23:10:57 centos dockerd[393]: time="2018-01-01T23:10:57.314691227Z" level=info msg="Loading containers: done." Jan 01 23:10:58 centos dockerd[393]: time="2018-01-01T23:10:58.847740731Z" level=info msg="Docker daemon" commit=c97c6d6...12.0-ce Jan 01 23:10:58 centos dockerd[393]: time="2018-01-01T23:10:58.848608084Z" level=info msg="Daemon has completed initialization" Jan 01 23:10:58 centos dockerd[393]: time="2018-01-01T23:10:58.858847596Z" level=info msg="API listen on /var/run/docker.sock" Jan 02 06:46:58 centos dockerd[393]: time="2018-01-02T06:46:58.294330887Z" level=warning msg="Seccomp is not enabled in ...ofile." Jan 02 06:46:58 centos dockerd[393]: time="2018-01-02T06:46:58.622378374Z" level=info msg="ignoring event" module=libcon...Create" Hint: Some lines were ellipsized, use -l to show in full.

jawdatt commented 6 years ago

is there any idea ?

jawdatt commented 6 years ago

when i use dockerd the result is

INFO[0000] libcontainerd: new containerd process, pid: 12728 WARN[0000] containerd: low RLIMIT_NOFILE changing to max current=1024 max=4096 ERRO[0001] 'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded. INFO[0001] Graph migration to content-addressability took 0.00 seconds WARN[0001] Your kernel does not support oom control. WARN[0001] Your kernel does not support memory swappiness. WARN[0001] Your kernel does not support kernel memory limit. WARN[0001] mountpoint for pids not found INFO[0001] Loading containers: start. .......WARN[0001] Running modprobe nf_nat failed with message: , error: exit status 1 WARN[0001] Running modprobe xt_conntrack failed with message:, error: exit status 1 INFO[0001] Firewalld running: false INFO[0001] Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address

INFO[0002] Loading containers: done. INFO[0002] Daemon has completed initialization INFO[0002] Docker daemon commit=ec8512b/1.12.6 graphdriver=vfs version=1.12.6 INFO[0002] API listen on /var/run/docker.sock

thaJeztah commented 6 years ago

Your first comment mentions Docker 17.12, but last comment shows that you have (another) version of Docker installed;

Docker daemon commit=ec8512b/1.12.6 graphdriver=vfs version=1.12.6

That version looks to be the Red Hat fork of docker; https://github.com/projectatomic/docker/commit/ec8512b, not the official package.

Make sure you don't have multiple versions of Docker installed on your host.

Please keep in mind that the GitHub issue tracker is not intended as a general support forum, but for reporting bugs and feature requests. For other type of questions, consider using one of;

I'm closing this issue because this is a support question, but feel free to comment after I closed