Docker, Yacreader and Terminal

Discussion about Docker
Locked
User avatar
Roberbond
Posts: 10
Joined: 23 Jul 2021, 15:57

Docker, Yacreader and Terminal

Post by Roberbond »

hi!
I bought the FD221 yesterday so I didn't have experience with the NAS. But I have configured almost everything :geek:

But I would like to install a Yacreader server, to read comics from my iPad and storage all my comics in the NAS.

I have followed this guide:https://yacreader.com/forum/support-lin ... docker-nas
, installing the docker app and running, but I have to use the terminal and input this line to make the library.:

Code: Select all

YACReaderLibraryServer add-library Gammenon /comics [/b]
I know I can enter the NAS by SSH, but I have enter that line of code in the docker as the instructions says.
Can I do it?
User avatar
djonesuk
Posts: 23
Joined: 28 Jun 2021, 22:01

Re: Docker, Yacreader and Terminal

Post by djonesuk »

ssh into the NAS as admin and type

Code: Select all

docker exec gammenon YACReaderLibraryServer add-library Gammenon /comics 
User avatar
Roberbond
Posts: 10
Joined: 23 Jul 2021, 15:57

Re: Docker, Yacreader and Terminal

Post by Roberbond »

Hi! thanks for the answer.
I tried it but I got the answer:
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.29/containers/gammenon/exec: dial unix /var/run/docker.sock: connect: permission denied
I have accessed by SSH with my only user that have access to all the folders. I don't have an admin user.
User avatar
djonesuk
Posts: 23
Joined: 28 Jun 2021, 22:01

Re: Docker, Yacreader and Terminal

Post by djonesuk »

Works for me as admin but trying running it as root with sudo.
User avatar
Roberbond
Posts: 10
Joined: 23 Jul 2021, 15:57

Re: Docker, Yacreader and Terminal

Post by Roberbond »

sorry I am a total noob. I don't know how to do that :roll:
User avatar
Roberbond
Posts: 10
Joined: 23 Jul 2021, 15:57

Re: Docker, Yacreader and Terminal

Post by Roberbond »

I finally entered as super user with the code:

Code: Select all

su -
I tried the command but I got the error:
Error response from daemon: No such container: gammenon
I suppose the container is the docker container name...
Image

so I changed the docker name to Robcomic and entered the code:
docker exec robcomic YACReaderLibraryServer add-library Robcomic /Comics
but I got the same error:
Error response from daemon: No such container: robcomic
User avatar
Roberbond
Posts: 10
Joined: 23 Jul 2021, 15:57

Re: Docker, Yacreader and Terminal

Post by Roberbond »

I finally did it!. :ugeek:

there was something wrong in the code. I change the add-library by create-library.

Code: Select all

docker exec Robcomic YACReaderLibraryServer create-library Robcomic /comics

Image
Locked