use systemctl restart docker
corrigido isso.
Eu posso iniciar um contêiner com docker run
e ele é executado sem problemas. Mas não posso docker exec
qualquer comando para executar o contêiner agora. O erro é assim:
rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:262: starting container process caused "process_linux.go:81: executing setns process caused \"exit status 16\""
Eu tentei reinstalar o docker-ce, mas isso não ajudou.
SO: Ubuntu 14.04
Versão do Docker: 17.06.0-ce
Registro DEBUG: (execute ls
command)
time="2017-08-07T14:43:20.322501870+08:00" level=debug msg="Calling GET /_ping"
time="2017-08-07T14:43:20.323172954+08:00" level=debug msg="Calling GET /v1.30/containers/nginx/json"
time="2017-08-07T14:43:20.326391920+08:00" level=debug msg="Calling POST /v1.30/containers/nginx/exec"
time="2017-08-07T14:43:20.326569848+08:00" level=debug msg="form data: {\"AttachStderr\":true,\"AttachStdin\":true,\"AttachStdout\":true,\"Cmd\":[\"ls\"],\"Detach\":false,\"DetachKeys\":\"\",\"Env\":null,\"Privileged\":false,\"Tty\":true,\"User\":\"\"}"
time="2017-08-07T14:43:20.327753849+08:00" level=debug msg="Calling POST /v1.30/exec/e4588970b41fa93cdbdd7bbebbffdc7817d8fd4a18687861ed320c51cb527e6f/start"
time="2017-08-07T14:43:20.327856675+08:00" level=debug msg="form data: {\"AttachStderr\":true,\"AttachStdin\":true,\"AttachStdout\":true,\"Cmd\":[\"ls\"],\"Detach\":false,\"DetachKeys\":\"\",\"Env\":null,\"Privileged\":false,\"Tty\":true,\"User\":\"\"}"
time="2017-08-07T14:43:20.327976854+08:00" level=debug msg="starting exec command e4588970b41fa93cdbdd7bbebbffdc7817d8fd4a18687861ed320c51cb527e6f in container 5d10eab31fc90c61ad84ef3154bccd20b007d2ea003d8e50895272f032306066"
time="2017-08-07T14:43:20.328296621+08:00" level=debug msg="Calling POST /v1.30/exec/e4588970b41fa93cdbdd7bbebbffdc7817d8fd4a18687861ed320c51cb527e6f/resize?h=38&w=155"
time="2017-08-07T14:43:20.328365273+08:00" level=debug msg="attach: stdin: begin"
time="2017-08-07T14:43:20.328468280+08:00" level=debug msg="attach: stdout: begin"
time="2017-08-07T14:43:20.377123769+08:00" level=error msg="Error running exec in container: rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:262: starting container process caused \"process_linux.go:81: executing setns process caused \\"exit status 16\\"\"\n"
time="2017-08-07T14:43:20.377298515+08:00" level=debug msg="attach: stdout: end"
time="2017-08-07T14:43:20.377257756+08:00" level=debug msg="Closing buffered stdin pipe"
time="2017-08-07T14:43:20.377367558+08:00" level=debug msg="attach: stdin: end"
time="2017-08-07T14:43:20.378569162+08:00" level=debug msg="Calling GET /v1.30/exec/e4588970b41fa93cdbdd7bbebbffdc7817d8fd4a18687861ed320c51cb527e6f/json"
Qualquer pensamento é bem-vindo.
use systemctl restart docker
corrigido isso.