Open vladostp opened 6 years ago
ummh, that's weird, have you tried with kata-containers ?
You would see that error if the docker daemon is not running or you do not have right privileges. Whats the output of systemctl status docker
.
The show
command above shows dockerd
is running with PID 1177
so it looks like an EPERM
issue.
Thanks! When i am launching container with -v /var/run/docker.sock:/var/run/docker.sock
Proxy gives an error: time="2018-05-07T11:12:17.230232501+02:00" level=error msg="error serving client: write unix /run/virtcontainers/pods/8ebfc2adc9fab0be2fd0659c30fcfae8e862f7c899b9d6b65cac95eebe7c79bc/proxy.sock->@: use of closed network connection" client=8 name=cc-proxy pid=2593 source=proxy
Hi @vladostp - as @devimc says, please can you try with Kata Containers:
I've just tried this:
$ docker run -ti -v /var/run/docker.sock:/var/run/docker.sock --runtime kata-runtime busybox echo ok
ok
@jodh-intel I get the same result with kata-containers.
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
docker run -ti -v /var/run/docker.sock:/var/run/docker.sock --runtime kata-runtime busybox echo ok
Works well but if you take a docker image with a docker client inside and you will try to call docker ps inside the container it will fail.
Using Dockerd Remote API is a working solution. Thanks to everyone
Description of problem
I am not able to use shared docker socket between host machine and a docker container.
Expected result
The docker client that is in container connects to docker daemon at host machine and launches other containers.
Actual result
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Meta details
Running
cc-collect-data.sh
version3.0.23 (commit 64d2226)
at2018-05-07.11:12:21.315124301+0200
.Runtime is
/usr/bin/cc-runtime
.cc-env
Output of "
/usr/bin/cc-runtime cc-env
":Runtime config files
Runtime default config files
Runtime config file contents
Config file
/etc/clear-containers/configuration.toml
not found Output of "cat "/usr/share/defaults/clear-containers/configuration.toml"
":Agent
version:
Logfiles
Runtime logs
Recent runtime problems found in system journal:
Proxy logs
Recent proxy problems found in system journal:
Shim logs
Recent shim problems found in system journal:
Container manager details
Have
docker
Docker
Output of "
docker version
":Output of "
docker info
":Output of "
systemctl show docker
":No
kubectl
Packages
Have
dpkg
Output of "dpkg -l|egrep "(cc-oci-runtime|cc-proxy|cc-runtime|cc-shim|kata-proxy|kata-runtime|kata-shim|clear-containers-image|linux-container|qemu-lite|qemu-system-x86)"
":No
rpm