ysrc / xunfeng

巡风是一款适用于企业内网的漏洞快速应急,巡航扫描系统。
GNU General Public License v3.0
3.54k stars 1.34k forks source link

why cannot login to the container #234

Closed GGOOHAPPY closed 5 years ago

GGOOHAPPY commented 5 years ago

i deploy the xunfeng using docker , but we cant login the the container ? what shell it is using

docker exec -it 7492518b742e bash

rpc error: code = 13 desc = invalid header field value "oci runtime error: exec failed: container_linux.go:247: starting container process caused \"process_linux.go:75: starting setns process caused \\"fork/exec /proc/self/exe: no such file or directory\\"\"\n" [root@hkgcvpd00389 containers]# docker exec -it 7492518b742e ash rpc error: code = 13 desc = invalid header field value "oci runtime error: exec failed: container_linux.go:247: starting container process caused \"process_linux.go:75: starting setns process caused \\"fork/exec /proc/self/exe: no such file or directory\\"\"\n"

Medicean commented 5 years ago

/bin/bash

GGOOHAPPY commented 5 years ago

it is still the same result

docker ps -a

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 7492518b742e ysrc/xunfeng:latest "/opt/xunfeng/dockerc" 5 days ago Up 3 days 0.0.0.0:9000->80/tcp scan

docker exec -it 7492518b742e /bin/bash

rpc error: code = 13 desc = invalid header field value "oci runtime error: exec failed: container_linux.go:247: starting container process caused \"process_linux.go:75: starting setns process caused \\"fork/exec /proc/self/exe: no such file or directory\\"\"\n"

Medicean commented 5 years ago

maybe you should upgrade your docker engine

[root@debian]: /root
➜  docker ps                                                                                                                                               [2019-10-17 17:08:05]
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                   NAMES
54b92dbb4266        ysrc/xunfeng        "/opt/xunfeng/docker…"   About an hour ago   Up About an hour    0.0.0.0:32768->80/tcp   silly_beaver
[root@debian]: /root
➜  docker exec -it 54b92dbb4266 bash                                                                                                                       [2019-10-17 18:09:30]
root@54b92dbb4266:/opt/xunfeng#
GGOOHAPPY commented 5 years ago

what docker engine version it needs ?

Medicean commented 5 years ago

my docker version:

➜  docker version                                                                                                                                                                        [2019-10-21 14:12:36]
Client:
 Version:           18.06.1-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        e68fc7a
 Built:             Tue Aug 21 17:23:18 2018
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.1-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       e68fc7a
  Built:            Tue Aug 21 17:22:21 2018
  OS/Arch:          linux/amd64
  Experimental:     false