wow. thanks so much! that's really generous of you to run me through that. I think its a pretty good tool so hopefully others will benefit from this run through.
I tried the steps laid out but I wasn't successful unfortunately. I tried to run it from the website with this command and then went to localhost:8080 and it didn't work.
docker run -d
--name stirling-pdf
-p 8080:8080
-v "./StirlingPDF/trainingData:/usr/share/tessdata"
-v "./StirlingPDF/extraConfigs:/configs"
-v "./StirlingPDF/customFiles:/customFiles/"
-v "./StirlingPDF/logs:/logs/"
-v "./StirlingPDF/pipeline:/pipeline/"
-e DOCKER_ENABLE_SECURITY=false
-e LANGS=en_GB
stirlingtools/stirling-pdf:latest
This is my terminal history:
admin@user10-ThinkPad-P15-Gen-1:~$ sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
[sudo] password for admin:
Hit:1 Index of /ubuntu noble InRelease
Hit:2 Index of /ubuntu noble-security InRelease
Hit:3 Index of /ubuntu noble-updates InRelease
Hit:4 Index of /ubuntu noble-backports InRelease
Hit:5 Index of http://download.virtualbox.org/virtualbox/debian noble InRelease
Hit:6 Index of /wine-builds/ubuntu noble InRelease
Hit:7 Index of linux/ubuntu/ noble InRelease
Ign:8 Index of /stable/deb/ stable InRelease
Hit:9 Index of /debian/ stable InRelease
Hit:10 Index of /stable/deb/ stable Release
Hit:11 Index of /deb/stable/ noble InRelease
Ign:12 http://packages.linuxmint.com xia InRelease
Hit:13 http://packages.linuxmint.com xia Release
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ca-certificates is already the newest version (20240203).
curl is already the newest version (8.5.0-2ubuntu10.6).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
admin@user10-ThinkPad-P15-Gen-1:~$ echo
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] Index of linux/ubuntu/
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" |
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sh
Hit:1 Index of /ubuntu noble InRelease
Hit:2 Index of /ubuntu noble-updates InRelease
Hit:3 Index of /ubuntu noble-backports InRelease
Hit:4 Index of linux/ubuntu/ noble InRelease
Hit:5 Index of http://download.virtualbox.org/virtualbox/debian noble InRelease
Hit:6 Index of /wine-builds/ubuntu noble InRelease
Hit:7 Index of /ubuntu noble-security InRelease
Hit:8 Index of /debian/ stable InRelease
Ign:9 Index of /stable/deb/ stable InRelease
Hit:10 Index of /stable/deb/ stable Release
Ign:11 http://packages.linuxmint.com xia InRelease
Hit:12 Index of /deb/stable/ noble InRelease
Hit:13 http://packages.linuxmint.com xia Release
Reading package lists... Done
$ sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
Hit:1 Index of /ubuntu noble InRelease
Hit:2 Index of /ubuntu noble-security InRelease
Hit:3 Index of /ubuntu noble-updates InRelease
Hit:4 Index of /ubuntu noble-backports InRelease
Hit:5 Index of linux/ubuntu/ noble InRelease
Hit:6 Index of /wine-builds/ubuntu noble InRelease
Hit:7 Index of http://download.virtualbox.org/virtualbox/debian noble InRelease
Hit:8 Index of /debian/ stable InRelease
Ign:9 Index of /stable/deb/ stable InRelease
Ign:10 http://packages.linuxmint.com xia InRelease
Hit:11 Index of /stable/deb/ stable Release
Hit:12 Index of /deb/stable/ noble InRelease
Hit:13 http://packages.linuxmint.com xia Release
Reading package lists... Done
$ echo
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] Index of linux/ubuntu/
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" |
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update> > > $
Hit:1 Index of linux/ubuntu/ noble InRelease
Hit:2 Index of /wine-builds/ubuntu noble InRelease
Hit:3 Index of http://download.virtualbox.org/virtualbox/debian noble InRelease
Hit:4 Index of /ubuntu noble-security InRelease
Hit:5 Index of /ubuntu noble InRelease
Hit:6 Index of /debian/ stable InRelease
Ign:7 http://packages.linuxmint.com xia InRelease
Hit:8 Index of /ubuntu noble-updates InRelease
Hit:9 Index of /deb/stable/ noble InRelease
Ign:10 Index of /stable/deb/ stable InRelease
Hit:11 Index of /stable/deb/ stable Release
Hit:12 Index of /ubuntu noble-backports InRelease
Hit:13 http://packages.linuxmint.com xia Release
Reading package lists... Done
$ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
docker-ce is already the newest version (5:27.5.1-1~ubuntu.24.04~noble).
docker-ce-cli is already the newest version (5:27.5.1-1~ubuntu.24.04~noble).
containerd.io is already the newest version (1.7.25-1).
docker-buildx-plugin is already the newest version (0.20.0-1~ubuntu.24.04~noble).
docker-compose-plugin is already the newest version (2.32.4-1~ubuntu.24.04~noble).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
$ sudo usermod -aG docker $USER
$ sudo usermod -aG docker $ADMIN
Usage: usermod [options] LOGIN
Options:
-a, --append append the user to the supplemental GROUPS
mentioned by the -G option without removing
the user from other groups
-b, --badname allow bad names
-c, --comment COMMENT new value of the GECOS field
-d, --home HOME_DIR new home directory for the user account
-e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE
-f, --inactive INACTIVE set password inactive after expiration
to INACTIVE
-g, --gid GROUP force use GROUP as new primary group
-G, --groups GROUPS new list of supplementary GROUPS
-h, --help display this help message and exit
-l, --login NEW_LOGIN new value of the login name
-L, --lock lock the user account
-m, --move-home move contents of the home directory to the
new location (use only with -d)
-o, --non-unique allow using duplicate (non-unique) UID
-p, --password PASSWORD use encrypted password for the new password
-P, --prefix PREFIX_DIR prefix directory where are located the /etc/* files
-r, --remove remove the user from only the supplemental GROUPS
mentioned by the -G option without removing
the user from other groups
-R, --root CHROOT_DIR directory to chroot into
-s, --shell SHELL new login shell for the user account
-u, --uid UID new UID for the user account
-U, --unlock unlock the user account
-v, --add-subuids FIRST-LAST add range of subordinate uids
-V, --del-subuids FIRST-LAST remove range of subordinate uids
-w, --add-subgids FIRST-LAST add range of subordinate gids
-W, --del-subgids FIRST-LAST remove range of subordinate gids
-Z, --selinux-user SEUSER new SELinux user mapping for the user account
$ sudo systemctl enable docker
Synchronizing state of docker.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable docker
$ groups
admin adm cdrom sudo dip plugdev users lpadmin sambashare docker
$ docker pull stirlingtools/stirling-pdf:latest
latest: Pulling from stirlingtools/stirling-pdf
Digest: sha256:a570b6f6522d49fbef616e4fef97f7aff35ce046daee16de4e2fa4699a042d33
Status: Image is up to date for stirlingtools/stirling-pdf:latest
docker.io/stirlingtools/stirling-pdf:latest
$ mkdir -p StirlingPDF/{trainingData,extraConfigs,customFiles,logs,pipeline}
$ docker run -d
--name stirling-pdf
-p 8080:8080
-v "./StirlingPDF/trainingData:/usr/share/tessdata"
-v "./StirlingPDF/extraConfigs:/configs"
-v "./StirlingPDF/customFiles:/customFiles/"
-v "./StirlingPDF/logs:/logs/" \
-v "./StirlingPDF/pipeline:/pipeline/"
-e DOCKER_ENABLE_SECURITY=false
-e LANGS=en_GB
stirlingtools/stirling-pdf:latest> > > > > > > > >
docker: Error response from daemon: Conflict. The container name "/stirling-pdf" is already in use by container "2f2338eb2fa9c184337d758fa5a3e65f0ebe47b3bab0c2510c91a848e1db9d99". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.
$