def get_builder_volumes(self):
        """
        Get the lists of volumes and volume-mounts for the build pod.
        """
        volume_mounts = []
        volumes = []

        if self.docker_host is not None:
            volume_mounts.append(
                client.V1VolumeMount(
                    mount_path="/var/run/docker.sock", name="docker-socket"
                )
            )
            docker_socket_path = urlparse(self.docker_host).path
            volumes.append(
                client.V1Volume(
                    name="docker-socket",
                    host_path=client.V1HostPathVolumeSource(
                        path=docker_socket_path, type="Socket"
                    ),
                )
            )

        if not self.registry_credentials and self.push_secret:
            volume_mounts.append(
                client.V1VolumeMount(
                    mount_path="/root/.docker/config.json",
                    name="docker-config",
                    sub_path="config.json",
                )
            )
            volumes.append(
                client.V1Volume(
                    name="docker-config",
                    secret=client.V1SecretVolumeSource(secret_name=self.push_secret),
                )
            )

        return volumes, volume_mounts

        Get the lists of volumes and volume-mounts for the build pod.
        
binderhub/build.py