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 only start exec sessions when their container is running: container state improper #45

Open
jemshit opened this issue Jul 16, 2023 · 3 comments

Comments

@jemshit
Copy link

jemshit commented Jul 16, 2023

OC: CentOS 8

Command history:

# docker run --name ocserv --privileged -p 443:443 -p 443:443/udp -d --restart unless-stopped ocserv
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
1b12cc60ca1d65e234acb6096ea5679367d4084e3482a041ed6c3b67306c1230

# docker exec -ti ocserv ocpasswd -c /etc/ocserv/ocpasswd username
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
Error: can only start exec sessions when their container is running: container state improper

How to fix this?

@iw4p
Copy link
Owner

iw4p commented Jul 17, 2023

Please tell me what did you get when you use

docker build -t ocserv https://github.com/iw4p/OpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv.git

and

docker run --name ocserv --privileged -p 443:443 -p 443:443/udp -d ocserv
?

@jemshit
Copy link
Author

jemshit commented Jul 17, 2023

docker build -t ocserv https://github.com/iw4p/OpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv.git

Output of this is veeery long, it ends with

Successfully tagged localhost/ocserv:latest
9720cf3a863a5add1975b05d2f65d7df7defaec041352521e2d6af8862786693

docker run --name ocserv --privileged -p 443:443 -p 443:443/udp -d ocserv

Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
d7c5e559a439df05df0ebc52104647e6bba851a3cbdf5f8bcae00c965e99fec2

@iw4p
Copy link
Owner

iw4p commented Jul 18, 2023

I have no experience with podman and you are using podman. Maybe it needs more commands or it is different from docker. If it is possible for you, please use docker instead of podman or ask somebody who is more experienced in DevOps :bowtie:

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

2 participants