Azure DevOps Pipeline task version

I want to create a pipeline that will build the docker image and push it to ACR. Which version of the docker task should be used? does [email protected] supports backward compatibility with [email protected]

Thanks in advance

Source: StackOverflow