# Issue with docker and pack install

**URL:** <https://swi-prolog.discourse.group/t/issue-with-docker-and-pack-install/992>\
**Category:** Help!\
**Created:** [July 25, 2019, 3:04pm UTC](https://swi-prolog.discourse.group/t/issue-with-docker-and-pack-install/992 "2019-07-25T15:04:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wdiestel](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/wdiestel/32/22_2.png) [@wdiestel](https://swi-prolog.discourse.group/u/wdiestel)\
**Post date:** [July 25, 2019, 3:04pm UTC](https://swi-prolog.discourse.group/t/issue-with-docker-and-pack-install/992/1 "2019-07-25T15:04:35Z")

</div>

Hello,

I try to bujild a docker image based on swipl:stable

Other then the documentation says prosqlite seems not to be preinstalled and when I try to  
install it I get an HTTP-500

```
% Contacting server at http://www.swi-prolog.org/pack/query ...
ERROR: -g pack_install(prosqlite,[interactive(false)]),halt: url `'https://www.swi-prolog.org/pack/query'' does not exist (status(500,Internal Server Error))

```

What could I do to fix this?

Thanks,  
Wolfram.

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [July 25, 2019, 3:17pm UTC](https://swi-prolog.discourse.group/t/issue-with-docker-and-pack-install/992/2 "2019-07-25T15:17:04Z")

</div>

Did you pull swipl:stable? This problem was fixed in 8.0.3, which is AFAIK, the current stable at DockerHub.

---

<div class="post-metadata">

**Author:** ![wdiestel](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/wdiestel/32/22_2.png) [@wdiestel](https://swi-prolog.discourse.group/u/wdiestel)\
**Post date:** [July 25, 2019, 7:21pm UTC](https://swi-prolog.discourse.group/t/issue-with-docker-and-pack-install/992/3 "2019-07-25T19:21:21Z")

</div>

After docker pull swipl:stable the issue with prosqlite seems to be gone, but can’t install googleclient package now:

```
% Contacting server at https://www.swi-prolog.org/pack/query ... ok
% Pack `prosqlite' is already installed @1.5
Removing intermediate container 0723b11956d0
 ---> 312ee4db3c94
Step 18/29 : RUN swipl -g "pack_install(googleclient,[interactive(false)]),halt" -t "halt(1)"
 ---> Running in f05a35fdc8be
% Contacting server at https://www.swi-prolog.org/pack/query ... ok
% Contacting server at https://www.swi-prolog.org/pack/query ...
ERROR: Server reported the following error:
ERROR: No permission to register pack(googleclient) `'https://api.github.com/repos/JanWielemaker/googleclient/zipball/V0.5.2''
```

---

<div class="post-metadata">

**Author:** ![wdiestel](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/wdiestel/32/22_2.png) [@wdiestel](https://swi-prolog.discourse.group/u/wdiestel)\
**Post date:** [July 25, 2019, 7:31pm UTC](https://swi-prolog.discourse.group/t/issue-with-docker-and-pack-install/992/4 "2019-07-25T19:31:54Z")

</div>

But it seems to be installed despite the error message, so I can live with the current situation:

```
$ swipl 
Welcome to SWI-Prolog (threaded, 64 bits, version 8.0.3)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
Please run ?- license. for legal details.

For online help and background, visit http://www.swi-prolog.org
For built-in help, use ?- help(Topic). or ?- apropos(Word).

?- pack_install(googleclient).
% Contacting server at https://www.swi-prolog.org/pack/query ... ok
% Pack `googleclient' is already installed @0.5.2
true.
```

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [July 25, 2019, 7:49pm UTC](https://swi-prolog.discourse.group/t/issue-with-docker-and-pack-install/992/5 "2019-07-25T19:49:06Z")

</div>

It is just updating the download location and count that fails. That is still something to work out. Github provides too many different places to download .zip file and they do not seem to be exactly the same over time, making the pack installer confused.

[Here](https://github.com/SWI-Prolog/docker-swipl/blob/b9018ff59091e52925de90ae1e73d281031d06e9/8.0.3/stretch/Dockerfile) is the official Dockerfile for SWI-Prolog which installs some add-ons.
