The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

mirto (20) [Avatar] Offline
I have a problem with the example at page 65
It seems that docker 1.9.1 returns a longer image id than expected.

BTW docker images shows only the first part of the image id.

What is the correct command to put in the book?

sysop@k1510docker:~$ docker tag my2048tag:$(date +%s) $(docker commit win2048)
Invalid repository name (a6d59801f8f5ec789aa02d691f3ff855c630357358622c45e0c103c2854fcc8d), cannot specify 64-byte hexadecimal strings
sysop@k1510docker:~$ docker info
Containers: 2
Images: 160
Server Version: 1.9.1
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 164
 Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.2.0-24-generic
Operating System: Ubuntu 15.10
CPUs: 8
Total Memory: 2.937 GiB
Name: k1510docker
WARNING: No swap limit support
mirto (20) [Avatar] Offline
Reply to myself

In the book the command parameters are inverted.

Wrong command at page 65
docker tag my2048tag:$(date +%s) $(docker commit win2048)

Correct command
docker tag $(docker commit win2048) my2048tag:$(date +%s)

There is also an error in the other command used to run the image

the command in the book gives the error of a missinig latest tag:
sysop@k1510docker:~$ docker run -d -p 5901:5901 -p 6080:6080 --name win2048 my2048tag
Unable to find image 'my2048tag:latest' locally
Pulling repository
Error: image library/my2048tag:latest not found

but finding the tag with docker images and using it in the command works:
sysop@k1510docker:~$ docker images
REPOSITORY              TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
my2048tag               1452845574          2ece7bb01669        47 seconds ago      3 GB
<none>                  <none>              4a1aaa6bda1d        6 minutes ago       2.999 GB
<none>                  <none>              a6d59801f8f5        15 minutes ago      2.999 GB


sysop@k1510docker:~$ docker run -d -p 5901:5901 -p 6080:6080 --name win2048 my2048tag:1452845574

aidanhs (25) [Avatar] Offline
Hi mirto

Thanks very much! I've made a note to fix these.