Skip to content

Commit

Permalink
Merge pull request #12066 from matejvasek/set-docker-host
Browse files Browse the repository at this point in the history
Set DOCKER_HOST in the VM
  • Loading branch information
openshift-merge-robot authored Oct 27, 2021
2 parents d908da5 + 38c7838 commit a05a445
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pkg/machine/ignition.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,24 @@ machine_enabled=true
},
})

setDockerHost := `export DOCKER_HOST="unix://$(podman info -f "{{.Host.RemoteSocket.Path}}")"
`

files = append(files, File{
Node: Node{
Group: getNodeGrp("root"),
Path: "/etc/profile.d/docker-host.sh",
User: getNodeUsr("root"),
},
FileEmbedded1: FileEmbedded1{
Append: nil,
Contents: Resource{
Source: encodeDataURLPtr(setDockerHost),
},
Mode: intToPtr(0644),
},
})

return files
}

Expand Down

0 comments on commit a05a445

Please sign in to comment.