Because you're using older Docker registry URL, a message displays, saying it is Legacy Registry. In modern versions of Docker, just use the image name for it is sufficient:
Code:
docker pull busybox
It is not necessary to include URLs like registry.hub.docker.com because Docker will default to Docker Hub. The full URL may not work due to the fact that Docker clients expect the default endpoint
Direct API calls must be noted that the endpoint structure has changed in newer versions. A best practice is to use Docker commands for compatibility with the latest registry setup and avoid issues.