Default to not mounting docker socket in exec

When running `forgejo-runner exec`, default to not mounting anything in the job container instead of mounting /var/run/docker.sock. This mirrors the behavior of the docker_host config value

If mounting a docker socket in the job container is desired, the user can use --container-daemon-socket
This commit is contained in:
Andrew Cassidy 2025-10-13 23:21:15 -07:00
parent f48e9b3ba6
commit eca5e67c0b
No known key found for this signature in database
2 changed files with 1 additions and 4 deletions

View file

@ -86,9 +86,6 @@ func (c Config) GetToken() string {
}
func (c *Config) GetContainerDaemonSocket() string {
if c.ContainerDaemonSocket == "" {
return "/var/run/docker.sock"
}
return c.ContainerDaemonSocket
}