<p>Ended up using the <a href="https://craftcms.com/docs/getting-started-tutorial/environment/stack.html#why-nitro" rel="nofollow noreferrer">nitro tutorial</a> instead. Thanks @Oli!</p>

CC BY-SA 4.0
2021-02-25T17:33:24.150Z
2021-02-25T17:33:24.150Z
Isabel Sharp
<p>I'm trying to set up craft to run with the docker images provided <a href="https://github.com/craftcms/docker" rel="nofollow noreferrer">here</a>. When I run <code>docker-compose build</code>, it gets through a few lines in the Dockerfile and then stops with an <code>invalid reference error</code> after these three lines:</p>
<blockquote>
<p>ARG PHP_VERSION <br />
ARG PROJECT_TYPE <br />
FROM php:${PHP_VERSION}-${PROJECT_TYPE}-alpine</p>
</blockquote>
<p>I do have php installed, but somehow the arguments aren't getting through to docker correctly. Has anyone gotten the docker images from that repo set up/integrated properly?</p>
<p>I'm no docker wizard so apologies if this is some really simple docker thing.</p>

CC BY-SA 4.0
2021-02-23T15:23:05.060Z
[Nitro 2](https://craftcms.com/docs/nitro/2.x/) is on Docker, is it an option for you?
Oli
<php><setup><docker>
Trouble running craft with docker
# Trouble running craft with docker

(Asked by: username_0 on 2021-02-19)

I'm trying to set up craft to run with the docker images provided [here](https://github.com/craftcms/docker). When I run `docker-compose build`, it gets through a few lines in the Dockerfile and then stops with an `invalid reference error` after these three lines:

> ARG PHP\_VERSION   
> ARG PROJECT\_TYPE   
> FROM php:${PHP\_VERSION}-${PROJECT\_TYPE}-alpine

I do have php installed, but somehow the arguments aren't getting through to docker correctly. Has anyone gotten the docker images from that repo set up/integrated properly?

I'm no docker wizard so apologies if this is some really simple docker thing.

**Tags:** php, setup, docker
> **Comments:**
> **username_1**: [Nitro 2](https://craftcms.com/docs/nitro/2.x/) is on Docker, is it an option for you?  

---

## 1 answers

### Answer by username_0 on 2021-02-25. Score: 1

Ended up using the [nitro tutorial](https://craftcms.com/docs/getting-started-tutorial/environment/stack.html#why-nitro) instead. Thanks @Oli!


---

