<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def distribute_docker_credentials_to_private_agents( username, password, file_name='docker.tar.gz'):
 """ Create and distributes a docker credentials file to all private agents :param username: docker username :type username: str :param password: docker password :type password: str :param file_name: credentials file name `docker.tar.gz` by default :type file_name: str """


    create_docker_credentials_file(username, password, file_name)

    try:
        __distribute_docker_credentials_file()
    finally:
        os.remove(file_name)