https://pantsbuild.org/ logo
#general
Title
# general
a

alert-dawn-51425

02/21/2023, 5:38 PM
Hey all, I am trying to get a docker container of pants running (since I need to run containers in our CI). I have the docker image running and can pants command. However, I am running into some issues with the docker setup. I am getting this error consistently: `Failed to start Docker container
064d5173e29a2933c4e0e6559841bc77e527723e30211b5ebed410c40927acaf
for image `sha256:a037112b1932d8a1e40b606c914630e9517680424b837155ee45a101c1fbb04f`: JsonSerdeError { err: Error("expected value", line: 1, column: 1) }` I think maybe my docker setup is not correct:
Copy code
[docker]
env_vars = [
    "DOCKER_CONFIG=/pants/.docker",
    "DOCKER_CONTEXT=default",
    "DOCKER_HOST=/var/run/docker.sock",
    "USER=%(user)s",
    "HOME=%(homedir)s"
]
tools = [
    "dirname",
    "readlink",
]
Any ideas on how to get the docker to run. I am running on ubuntu:bionic
e

enough-analyst-54434

02/21/2023, 5:45 PM
The obvious high-level suspicion comes from the placeholders. Are you sure "%(user)s" and "%(homedir)s" evaluate non-empty? I'd rule in / out the obvious there as a solid 1st debug step.
a

alert-dawn-51425

02/21/2023, 5:47 PM
I was able to build a different docker image here. So I am not sure if the starting of the container for docker environmet and building a docker image need different things
7 Views