docker: not found
thibaud opened this issue · comments
Hi Jamhed,
Thanks for your work, that's really excellent !
I don't understand well how to install the script. In Ubuntu, I did this:
sudo apt install cpanminus
sudo cpanm JSON DBI DBD::SQLite LWP::UserAgent LWP::Protocol::https
I created a config.json at the root of the anki folder.
I don't understand what to do with the docker. When I launch it now by sh docker/build.sh I get docker: not found
.
Have I to enter "sudo snap install docker " ?
Now, when I type:
./bin/google-phrasebook.pl > phrasebook.json
I get Can't locate Google.pm in @INC (you may need to install the Google module)
It appears that this module is in the lib folder, so I suppose that launching the docker was a prerequisit.
And, in the docker file, I see the parameter -t jamhed/anki
Have to replace it by -t /opt/anki
if I placed your script in the /opt folder ?
Best,
Thibaud.
OK I fixed it installing docker software from the docker.com install page:
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
Using docker image works now, with sudo before.
Issue solved !
Best,
Thibaud.