I encountered the same error message when the version of the FROM image was a string (e.g. latest) instead of a version number.
FROM
latest