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

Can't start the container : exited (139) #7

Closed
Crivaledaz opened this issue Aug 21, 2018 · 10 comments
Closed

Can't start the container : exited (139) #7

Crivaledaz opened this issue Aug 21, 2018 · 10 comments

Comments

@Crivaledaz
Copy link

Hi,

I never used Docker before, so it is certainly a noob problem.

I can't start the container. After 'docker run' finished, the container is not running and with 'docker ps -a' I get the following : COMMAND : /usr/local/bin/entrypoint" STATUS : Exited (139) 4 seconds ago

When I try to start the container with 'docker start openvpn', it just prompts "openvpn" on stdout and I get the same output from 'docker ps -a'

What I am doing wrong ?

Thank you in advance

Docker 18.06 on ArchLinux Kernel 4.18.3

@wheelybird
Copy link
Owner

It's hard to say. The example to run the container in the README works. What's the command that you're running to start the container?

@Crivaledaz
Copy link
Author

First, I tried with OTP enabled : docker run --name openvpn --volume /opt/docker:/etc/openvpn --detach=true -p 1194:1194/udp -e "OVPN_SERVER_CN=vpn.ldap.test" -e "LDAP_URI=ldap://192.168.42.100:389" -e "LDAP_BASE_DN=ou=VPN,dc=ldap,dc=test" -e "ENABLE_OTP=true" --cap-add=NET_ADMIN wheelybird/openvpn-ldap-otp

Also I tried directly with the command line from the Readme : docker run --name openvpn --volume /opt/docker:/etc/openvpn --detach=true -p 1194:1194/udp -e "OVPN_SERVER_CN=vpn.ldap.test" -e "LDAP_URI=ldap://192.168.42.100" -e "LDAP_BASE_DN=ou=VPN,dc=ldap,dc=test" --cap-add=NET_ADMIN wheelybird/openvpn-ldap-otp

I have the same problem in both case. I found nothing about this Docker error on internet :/

Regards

@wheelybird
Copy link
Owner

What do you get from docker logs openvpn?

@Crivaledaz
Copy link
Author

I got nothing with docker logs openvpn
I have done again the 'docker run' in a clean configuration (I deleted image and container). I share with you a screenshot of my terminal, to clarify :

docker_error

Thank you for your help

@wheelybird
Copy link
Owner

The command you're using looks fine; it should work. I suspect there's something odd about your Docker setup. Are you using Linux on a x86 CPU? i.e. not a Rasperry PI.

Try replacing --detach with -ti to get an interactive container instead.

@Crivaledaz
Copy link
Author

Hi,

I have tried the container on Fedora and it works perfectly. I think Arch Linux is not the best choice to begin with Docker.

Thank you for your help

@RichGuk
Copy link

RichGuk commented May 20, 2019

Just came across this issue too (also on Arch). Think its related to: CentOS/sig-cloud-instance-images#62; pypa/manylinux#254; moby/moby#28705 (comment).

Might be worth upgrading to centos7? There is this fork: https://github.com/benohara/openvpn-server-ldap-otp/tree/centos7

@wheelybird
Copy link
Owner

Hi. Is this on Arch for x86 or arm?

@RichGuk
Copy link

RichGuk commented May 20, 2019

Mine is for x86. I'm assuming the newer kernel doesn't have the required vsyscall that centos6 is requiring.

@wheelybird
Copy link
Owner

Rightho. I've just created a new image (wheelybird/openvpn-server-ldap-otp:centos7) using benohara's fork. It's available now, but I haven't tested it yet. If you want to give it a spin, go for it.

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

3 participants