Docker Community Forums

Share and learn in the Docker community.

Issue with Docker container not running after been deploy

Host OS : Linux master 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

~$ sudo docker info [sudo] password for master: Containers: 3 Running: 1 Paused: 0 Stopped: 2 Images: 5 Server Version: 18.06.1-ce Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: bridge host macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog Swarm: inactive Runtimes: runc Default Runtime: runc Init Binary: docker-init containerd version: 468a545b9edcd5932818eb9de8e72413e616e86e runc version: 69663f0bd4b60df09991c08812a60108003fa340 init version: fec3683 Security Options: apparmor seccomp Profile: default Kernel Version: 4.4.0-142-generic Operating System: Ubuntu 16.04.6 LTS OSType: linux Architecture: x86_64 CPUs: 2 Total Memory: 3.748GiB Name: master ID: ZRU3:Y5V2:Q2GK:AYC4:N3BX:6ADV:6BUU:47PJ:DXFC:L2MY:UVQP:TEKP Docker Root Dir: /var/lib/docker Debug Mode (client): false Debug Mode (server): false Registry: https://index.docker.io/v1/ Labels: Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false

WARNING: No swap limit support

Container Creation with no errors ~$ sudo docker container run -d -p 81:22 --name test3 ubuntu 866a390866d1aed2d4e550ba6ec6bed1742093c179612758aa291cdc17e01dcb

Not listed from the Running Containers ~$ sudo docker container ls CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES fe68bc38a7f9 nginx “nginx -g 'daemon of…” About a minute ago Up About a minute 0.0.0.0:80->80/tcp test2

Not listed from All Container ~$ sudo docker container ls -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 866a390866d1 ubuntu “/bin/bash” 27 seconds ago Exited (0) 25 seconds ago test3

Forced Start the Container with positive Output ~$ sudo docker start 866 866

Still not show as Running after List the Containers ~$ sudo docker container ls CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES fe68bc38a7f9 nginx “nginx -g 'daemon of…” 2 minutes ago Up 2 minutes 0.0.0.0:80->80/tcp test2

Any idea would be well received.