diff --git a/binderhub/build.py b/binderhub/build.py index a5be78d3d..07afb267d 100644 --- a/binderhub/build.py +++ b/binderhub/build.py @@ -448,7 +448,11 @@ def get_builder_volumes(self): if not self.registry_credentials and self.push_secret: volume_mounts.append( - client.V1VolumeMount(mount_path="/root/.docker", name="docker-config") + client.V1VolumeMount( + mount_path="/root/.docker/config.json", + name="docker-config", + sub_path="config.json", + ) ) volumes.append( client.V1Volume(