Skip to content

Commit 52f5173

Browse files
authored
Merge pull request #35077 from pohly/dind-cdi
DIND: fix CDI_IN_DOCKER_ENABLED
2 parents 7f4dd38 + c91d9fe commit 52f5173

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

images/bootstrap/runner.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ if [[ "${DOCKER_IN_DOCKER_ENABLED}" == "true" ]]; then
4646
export CDI_IN_DOCKER_ENABLED=${CDI_IN_DOCKER_ENABLED:-false}
4747
if [[ "${CDI_IN_DOCKER_ENABLED}" == "true" ]]; then
4848
echo "Enabling CDI for Docker."
49-
cat /etc/docker/daemon.json <<EOF
49+
mkdir -p /etc/docker/
50+
cat >/etc/docker/daemon.json <<EOF
5051
{
5152
"features": {
5253
"cdi": true

0 commit comments

Comments
 (0)