high-yak-85899
04/06/2022, 8:22 PMdocker exec -it <my container> bash
but I don't see the pex binary show up in my ls
calls. Should I be able to or is there some obfuscated things happening on the COPY
step?hundreds-father-404
04/06/2022, 8:26 PMhigh-yak-85899
04/06/2022, 8:35 PMps
behavior. I'm confused why I don't see anything when I do ls
but I can happily put a path in ENTRYPOINT
and it runs my pex happily.hundreds-father-404
04/06/2022, 8:36 PMhigh-yak-85899
04/06/2022, 8:42 PMhigh-yak-85899
04/06/2022, 8:42 PMenough-analyst-54434
04/06/2022, 8:46 PMdocker inspect <image>
? That should reveal an entry point and you should be able to work backwards from there.enough-analyst-54434
04/06/2022, 8:49 PM$ docker inspect 67ec76d9f73b | jq '.[] | .Config'
{
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"LANG=C.UTF-8",
"GPG_KEY=E3FF2839C048B25C084DEBE9B26995E310250568",
"PYTHON_VERSION=3.8.12",
"PYTHON_PIP_VERSION=21.2.4",
"PYTHON_SETUPTOOLS_VERSION=57.5.0",
"PYTHON_GET_PIP_URL=<https://github.com/pypa/get-pip/raw/3cb8888cc2869620f57d5d2da64da38f516078c7/public/get-pip.py>",
"PYTHON_GET_PIP_SHA256=c518250e91a70d7b20cceb15272209a4ded2a0c263ae5776f129e0d9b5674309"
],
"Cmd": [
"python3"
],
"Image": "sha256:525b7bd065f75bf886e56e4662057daddd43ba6955a85cf3540a82e86baffc69",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": null
}
I could use that PATH
to find the python3
Cmd
for example.high-yak-85899
04/06/2022, 8:52 PMhigh-yak-85899
04/06/2022, 8:54 PMhigh-yak-85899
04/06/2022, 8:54 PMbitter-ability-32190
04/07/2022, 1:20 PMhigh-yak-85899
04/07/2022, 4:34 PM