<p>I just started using OpenShift and currently using the 60 day free trial. I was hoping to test some of my developmental Dockerfiles in it, but when I try to use any Dockerfile I get this error:</p>

<pre><code>admission webhook "validate.build.create" denied the request: Builds with docker strategy are prohibited on this cluster
</code></pre>

<p>To recreate:
Developer view -> Topology -> From Dockerfile -> 
GitHub Repo URL = <a href="https://github.com/alpinelinux/docker-alpine" rel="nofollow noreferrer">https://github.com/alpinelinux/docker-alpine</a> -> Defaults for everything else -> Create</p>

<p>This example just uses the official Alpine Dockerfile and it does not work.</p>

Hustlin
<p>Based on this <a href="https://stackoverflow.com/a/46840462/11977760">answer</a> made by Graham Dumpleton</p>

<blockquote>
  <p>If you are using OpenShift Online, it is not possible to enable the docker build type. For OpenShift Online your options are to build your image locally and then push it up to an external image registry such as Docker Hub, or login to the internal OpenShift registry and push your image directly in to it. The image can then be used in a deployment.</p>
  
  <p>If you have set up your own OpenShift cluster, my understanding is that docker build type should be enabled by default. You can find more details at:</p>
  
  <p><a href="https://docs.openshift.com/container-platform/3.11/admin_guide/securing_builds.html" rel="nofollow noreferrer">https://docs.openshift.com/container-platform/3.11/admin_guide/securing_builds.html</a></p>
  
  <p>If you are after a way to deploy a site using a httpd web server, there is a S2I builder image available that can do that. See:</p>
  
  <p><a href="https://github.com/sclorg/httpd-container" rel="nofollow noreferrer">https://github.com/sclorg/httpd-container</a></p>
  
  <p>OpenShift Online provides the source build strategy (S2I). Neither docker or custom build strategies are enabled. So you can build images in OpenShift Online, but only using the source build strategy.</p>
</blockquote>
