Error parsing reference: invalud reference format

Docker newbie here.
I’m trying to follow the examples from the Book “Docker: Up & Running” by Kane.
Unfortunately I’m running into a wall in Chapter 4, where I’m trying to edit the tags on the image that I have previously and successfully created, by running the following command:

$ docker tag example/docker-node-hello:latest ${<myuser>}/docker-node-hello:latest

I replaced my docker account username with

The error I get back is:
Error parsing reference: "/docker-node-hello:latest" is not a valid repository/tag: invalid reference format

Any idea what the issue could be here?

I am using Docker Version:
Client: Docker Engine - Community
Version: 19.03.8
API version: 1.40
Go version: go1.12.17
Git commit: afacb8b
Built: Wed Mar 11 01:21:11 2020
OS/Arch: darwin/amd64
Experimental: false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.8
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.17
  Git commit:       afacb8b
  Built:            Wed Mar 11 01:29:16 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.2.13
  GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

Thanks in advance,

Hello! Fellow Docker newbie here, reading the same book. This is a late reply but it might help someone else.

Even though the preface of the book gives you reason to believe that <myuser> should be replaced with your Docker Hub username, in chapter 4 it is actually stated that it is ${<myuser>} that should be replaced with the username string.

The full command then becomes
$ docker tag example/docker-node-hello:latest \
aabrugger/docker-node-hello:latest

for the username of OP.

This solved the issue for me at least!

1 Like