In the documentation regarding CircleCI docker exec, there is reference to the syntax
sudo lxc-attach -n "$(docker inspect --format '' $BUILD_NAME)" -- bash -c ./configure.sh
to execute processes within running containers. However, I keep getting the same response:
lxc-attach: attach.c: lxc_attach: 713 failed to get the init pid
When I run the command
docker inspect --format '' $BUILD_NAME
The following is the output:
[
{
“Id”: “f509ed1efaa939e46d4dbc5ac9e6ba3d1e7a7ce2441e6e9a18af021a1bee5eef”,
“Parent”: “5ccc36dc8898d1d96b488f04a4f34357cf63401c1a97f4bb3bca3d050ebd2a6c”,
“Comment”: “”,
“Created”: “2016-06-13T19:21:02.131825755Z”,
“Container”: “1afe0712656be1cd8e3f1a0b122cf4f2ffa17601cbdd56c6238d7ff05e48939c”,
“ContainerConfig”: {
“Hostname”: “914cf42a3e15”,
“Domainname”: “”,
“User”: “”,
“AttachStdin”: false,
“AttachStdout”: false,
“AttachStderr”: false,
“Tty”: false,
“OpenStdin”: false,
“StdinOnce”: false,
“Env”: [
“PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”,
“TERM=xterm”,
“DEBIAN_FRONTEND=noninteractive”
],
“Cmd”: [
“/bin/sh”,
“-c”,
“#(nop) ENTRYPOINT \u0026{["/docker-entrypoint.sh"]}”
],
“Image”: “5ccc36dc8898d1d96b488f04a4f34357cf63401c1a97f4bb3bca3d050ebd2a6c”,
“Volumes”: null,
“WorkingDir”: “”,
“Entrypoint”: [
“/docker-entrypoint.sh”
],
“OnBuild”: ,
“Labels”: {}
},
“DockerVersion”: “1.8.3-circleci”,
“Author”: “Timothy Dalbey \u003ctimothy.dalbey@mheducation.com\u003e”,
“Config”: {
“Hostname”: “914cf42a3e15”,
“Domainname”: “”,
“User”: “”,
“AttachStdin”: false,
“AttachStdout”: false,
“AttachStderr”: false,
“Tty”: false,
“OpenStdin”: false,
“StdinOnce”: false,
“Env”: [
“PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”,
“TERM=xterm”,
“DEBIAN_FRONTEND=noninteractive”
],
“Cmd”: null,
“Image”: “5ccc36dc8898d1d96b488f04a4f34357cf63401c1a97f4bb3bca3d050ebd2a6c”,
“Volumes”: null,
“WorkingDir”: “”,
“Entrypoint”: [
“/docker-entrypoint.sh”
],
“OnBuild”: ,
“Labels”: {}
},
“Architecture”: “amd64”,
“Os”: “linux”,
“Size”: 0,
“VirtualSize”: 706867376,
“GraphDriver”: {
“Name”: “btrfs”,
“Data”: null
}
}
]
Any feedback as to why that might be happening?