diff --git a/binderhub/build.py b/binderhub/build.py index 4e455be36..18b513cb8 100644 --- a/binderhub/build.py +++ b/binderhub/build.py @@ -456,7 +456,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(