Skip to main content

Docker Success Center

The Docker enterprise customer portal.

Docker, Inc.

When building an image from GitHub, I see the following error: "Error response from daemon: Unknown instruction"

When attempting to build an image using a source repository from GitHub, the build fails with the following error:

Error response from daemon: Unknown instruction

If the build is failing for a sample command such as the following:

docker build https://github.com/user_me/my_repo

Add .git to the end of the command to build without the Unknown instruction error:

docker build https://github.com/user_me/my_repo.git