** go over and edit so this is more friendly **
root@whisperai:/home/zemerdon/subgen# history
1 apt install wget curl sudo
2 pico /etc/sudoers
3 apt install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common
4 curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
5 add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
6 apt update
7 apt-cache policy docker-ce
8 apt install -y docker-ce
9 useradd -m -s /bin/bash docker -g docker
10 apt install useradd
11 apt install apt-file
12 apt install mlocate
13 updatedb
14 apt-file update
15 apt-file search useradd
16 apt install passwd
17 useradd
18 reboot
19 shutdown -r now
20 systemctl reboot
21 adduser zemerdon
22 apt update
23 apt dist-upgrade
24 ip a
25 useradd
26 useradd -m -s /bin/bash docker -g docker
27 docker volume create portainer_data
28 docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest
29 docker run -d -p 9001:9001 --name portainer_agent --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/volumes:/var/lib/docker/volumes -v /:/host portainer/agent:2.27.9
30 ip a
31 ls -xl
32 git clone https://github.com/McCloudS/subgen.git
33 ls -xl
34 cd
35 cd /home/zemerdon/subgen/
36 ls -xl
37 docker build .
38 docker ls
39 docker ps
42 docker ps
43 docker images
46 docker run -d -p 9000:9000 262ed7baf18b
47 docker ps
48 docker restart portainer
49 docker ps
50 docker logs portainer
51 systemctl status docker
52 docker --help
55 docker run -d -p 9000:9000 262ed7baf18b
56 docker ps
73 sudo docker system prune -a -f
84 docker builder prune
119 docker compose
120 docker compose up -d
121 docker compose logs
133 docker ps
134 docker context ls
135 echo '{"min-api-version": "1.24"}' | sudo tee /etc/docker/daemon.json
136 systemctl restart docker
137 pico /etc/docker/daemon.json
Bazarr + Docker + Subgen setup (whisperai)
Re: docker subgen
docker update --restart=always containerid
docker update --restart=on-failure containerid
To start a container and set it to restart automatically on system reboot use
docker run -d --restart unless-stopped ecstatic_ritchie
Where ecstatic_ritchie is an example name specifying the container in interest. Use docker ps -a to list all container names.
To make particular running containers start automatically on system reboot
docker update --restart unless-stopped ecstatic_ritchie
To make all running containers start automatically on system reboot
docker update --restart unless-stopped $(docker ps -q)
container restart status
docker inspect -f "{{ .HostConfig.RestartPolicy }}" containerid
{always 0}
Flag Description
no Do not automatically restart the container. (the default)
on-failure Restart the container if it exits due to an error, which manifests as a non-zero exit code.
always Always restart the container if it stops. If it is manually stopped, it is restarted only when Docker daemon restarts or the container itself is manually restarted. (See the second bullet listed in restart policy details)
unless-stopped Similar to always, except that when the container is stopped (manually or otherwise), it is not restarted even after Docker daemon restarts.
docker update --restart=on-failure containerid
To start a container and set it to restart automatically on system reboot use
docker run -d --restart unless-stopped ecstatic_ritchie
Where ecstatic_ritchie is an example name specifying the container in interest. Use docker ps -a to list all container names.
To make particular running containers start automatically on system reboot
docker update --restart unless-stopped ecstatic_ritchie
To make all running containers start automatically on system reboot
docker update --restart unless-stopped $(docker ps -q)
container restart status
docker inspect -f "{{ .HostConfig.RestartPolicy }}" containerid
{always 0}
Flag Description
no Do not automatically restart the container. (the default)
on-failure Restart the container if it exits due to an error, which manifests as a non-zero exit code.
always Always restart the container if it stops. If it is manually stopped, it is restarted only when Docker daemon restarts or the container itself is manually restarted. (See the second bullet listed in restart policy details)
unless-stopped Similar to always, except that when the container is stopped (manually or otherwise), it is not restarted even after Docker daemon restarts.
subgen variables
TRANSCRIBE_DEVICE = CPU
WHISPER_MODEL = MEDIUM
CONCURRENT_TRANSCRIPTIONS = 2
WHISPER_THREADS = 16
WHISPER_MODEL = MEDIUM
CONCURRENT_TRANSCRIPTIONS = 2
WHISPER_THREADS = 16