Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker container not starting correctly #19

Open
jeromeza opened this issue Mar 26, 2016 · 0 comments
Open

Docker container not starting correctly #19

jeromeza opened this issue Mar 26, 2016 · 0 comments

Comments

@jeromeza
Copy link

If I run the container with the -v flag as suggested, then it exits immediately on start. If I add the -t flag then it stays up. Your README doesn't seem to cater for this... Any idea's why?

[root@sd-34204 ~]# cat /etc/centos-release
CentOS Linux release 7.2.1511 (Core)

[root@sd-34204 ~]# docker info
Containers: 1
Images: 30
Storage Driver: devicemapper
Pool Name: docker-8:2-15598068-pool
Pool Blocksize: 65.54 kB
Backing Filesystem: extfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 2.925 GB
Data Space Total: 107.4 GB
Data Space Available: 104.4 GB
Metadata Space Used: 3.019 MB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.144 GB
Udev Sync Supported: true
Deferred Removal Enabled: false
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.107-RHEL7 (2015-12-01)
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.10.0-327.10.1.el7.x86_64
Operating System: CentOS Linux 7 (Core)
CPUs: 1
Total Memory: 1.765 GiB
Name: sd-34204
ID: UQKS:42NV:IMNY:XTDU:WIVW:2YA2:PWL7:YA75:W46C:5SZL:QVQV:URJO
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled

[root@sd-34204 moddata]# docker run -d -p 6667 -v $HOME/.znc:/znc-data jeromeza/znc
831d2eea9d1eb88459772e33c55c31cf2ddfcf4e0edbdc94e123c38d51a80fca

[root@sd-34204 moddata]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
831d2eea9d1e jeromeza/znc "/entrypoint.sh " 5 seconds ago Exited (1) 4 seconds ago trusting_goldstine

[root@sd-34204 moddata]# docker run -d -p 6667 -vt $HOME/.znc:/znc-data jeromeza/znc
3d68161681659684890c54e615b8dd229f5bfa750f2ea5c4d2900e40eb5ed4f2

[root@sd-34204 moddata]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3d6816168165 jeromeza/znc "/entrypoint.sh " 2 seconds ago Up 1 seconds 0.0.0.0:32778->6667/tcp agitated_panini
831d2eea9d1e jeromeza/znc "/entrypoint.sh " 15 seconds ago Exited (1) 14 seconds ago trusting_goldstine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant