# Keycloak Image For more information, see the [Running Keycloak in a container guide](https://www.keycloak.org/server/containers). ## Build the image It is possible to download the Keycloak distribution from a URL: docker build --build-arg KEYCLOAK_DIST=http://:/keycloak-.tar.gz . -t Alternatively, you need to build the local distribution first, then copy the distributions tar package in the `container` folder and point the build command to use the image: cp $KEYCLOAK_SOURCE/quarkus/dist/target/keycloak-.tar.gz . docker build --build-arg KEYCLOAK_DIST=keycloak-.tar.gz . -t