abiosoft / caddy-docker

Docker container for Caddy
https://hub.docker.com/r/abiosoft/caddy/
MIT License
768 stars 315 forks source link

Docker Build - invalid Reference format #137

Closed psyciknz closed 6 years ago

psyciknz commented 6 years ago

I'm just trying to run the build command from the readme.

docker build --build-arg     plugins=filemanager,git,linode     github.com/abiosoft/caddy-docker.git                                           Sending build context to Docker daemon 188.4 kB
Step 1/22 : FROM abiosoft/caddy:builder as builder
Error parsing reference: "abiosoft/caddy:builder as builder" is not a valid repository/tag: invalid reference format

What am I missing from the doco that should let me add plugins. I've tried downloading the source into a folder, and removing the github.com/abiosoft/caddy-docker.git with . and get the same error.

I assume there's something missing on my system

abiosoft commented 6 years ago

You're likely using a very old version of Docker that do not support multi-stage builds. It was introduced in version 17.05.

psyciknz commented 6 years ago

Hmm by comparison yes I am:

Client:
 Version:      1.13.1
 API version:  1.26
 Go version:   go1.8.3
 Git commit:   092cba3
 Built:        Thu Oct 12 22:34:44 2017
 OS/Arch:      linux/amd64

Server:
 Version:      1.13.1
 API version:  1.26 (minimum version 1.12)

Hmm how does that work if I just pulled the latest (on ubuntu 17.10). Should I be using Docker CE?

psyciknz commented 6 years ago

Awsome thanks for the pointer. Docker removed, docker-ce installed, and currently building.