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
#1
Sorry my error: I added a " /bin/bash" at the end of the command

The secret error in the code below was caused by the error in copying the command from the book


Original messsage:

Trying the example on page 70 I have:

sysop@k1510docker:~$ docker run -d -p 8888:8888 -p 55555:55555 --name btsync ctlc/btsync /bin/bash 
Unable to find image 'ctlc/btsync:latest' locally
latest: Pulling from ctlc/btsync
d634beec75db: Pull complete 
c01f27a5464d: Pull complete 

...

99c1e66adebe: Download complete 
Status: Downloaded newer image for ctlc/btsync:latest
docker.io/ctlc/btsync: this image was pulled from a legacy registry.  Important: This registry version will not be supported in future versions of docker.
d2bd9c85e7debb42098004e488712b7999bfe676db537179e154e5c01a46cc1a
sysop@k1510docker:~$ docker logs btsync
Starting btsync with secret: /bin/bash
By using this application, you agree to our Privacy Policy and Terms.
http://www.bittorrent.com/legal/privacy
http://www.bittorrent.com/legal/terms-of-use

total physical memory 536870912 max disk cache 2097152
Using IP address 172.17.0.4
Error while adding folder /data: This secret is invalid.
Please generate a new secret or enter the secret for your shared folder.
sysop@k1510docker:


How can I setup the secret?