For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.
prepareserver.sh script fails
The prepareserver.sh script fails and returns the error 405 Method Not Allowed.
Explanation
The following error occurs when running the prepareserver.sh script to push the image to the IBM® Containers registry.
Pushing the MobileFirst Server image to the IBM Containers registry.. Error response from daemon: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <title>405 Method Not Allowed</title> <h1>Method Not Allowed</h1> <p>The method is not allowed for the requested URL.</p>
This error typically occurs if the Docker variables have been modified on the host environment. After executing the initenv.sh script, the tooling provides an option to override the local docker environment to connect to IBM Containers using native docker commands.
How to resolve
Do not modify the Docker variables (such as DOCKER_HOST and DOCKER_CERT_PATH) to point to the IBM Containers registry environment. For the prepareserver.sh script to work correctly, the Docker variables must point to the local Docker environment.
Parent topic: Troubleshooting tips