"树莓派常用安装docker命令"
Published on Aug. 22, 2023, 12:06 p.m.
树莓派常用安装docker命令
树莓派常用安装docker命令
这里只是列出一些常用的镜象,其他的可以到
https://hub.docker.com/search?q=&type=image&architecture=arm64
这里。
只要是arm64架构的都ok
===
美杜莎
docker pull linuxserver/medusa
docker create \
--name=medusa \
--restart unless-stopped \
-v /home/pi/data/medusa:/config \
-v /home/pi/:/home/pi/ \
-e PGID=1000 -e PUID=1000 \
-e TZ=Asia/Shanghai \
-p 8081:8081 \
linuxserver/medusa
docker create
–name=medusa
–restart unless-stopped
-v /home/pi/data/medusa:/config
-v /home/pi/dirve/:/media/AiDisk_a1
-e PGID=1000 -e PUID=1000
-e TZ=Asia/Shanghai
-p 8081:8081
linuxserver/medusa:arm32v7-latest
docker run -d
–name=medusa
–restart unless-stopped
-v /mnt/:/mnt/
-e PGID=0 -e PUID=0
-e TZ=Asia/Shanghai
-p 8081:8081
linuxserver/medusa:arm32v7-latest
linuxserver/medusa
couchpotato
docker create \
--name=couchpotato \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Asia/Shanghai \
-e UMASK_SET=022 \
-p 5050:5050 \
-v /home/pi/data/couchpotato:/config
-v /home/pi/:/home/pi/ \
--restart unless-stopped \
linuxserver/couchpotato
docker create
–name=couchpotato
-e PUID=1000
-e PGID=1000
-e TZ=Asia/Shanghai
-e UMASK_SET=022
-p 5050:5050
-v /home/pi/data/couchpotato:/config
-v /home/pi/dirve/:/media/AiDisk_a1
–restart unless-stopped
linuxserver/couchpotato
rutorrent
docker create \
--name=rutorrent \
-e PUID=1000 \
-e PGID=1000 \
-p 8082:80 \
-p 5000:5000 \
-p 51413:51413 \
-p 6881:6881/udp \
-v /home/pi/dirve/data/rutorrent:/config \
-v /home/pi/dirve/Download:/downloads \
-v /home/pi/dirve:/home/pi/dirve \
--restart unless-stopped \
linuxserver/rutorrent
qbittorrent
docker create \
--name=qbittorrent \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Asia/Shanghai \
-e UMASK_SET=022 \
-e WEBUI_PORT=8080 \
-p 6881:6881 \
-p 6881:6881/udp \
-p 8080:8080 \
-v /home/pi/dirve/data/qbittorrent:/config \
-v /home/pi/dirve/Download:/downloads \
-v /home/pi/dirve:/home/pi/dirve \
--restart unless-stopped \
linuxserver/qbittorrent
qbittorrent
docker create \
--name=qbittorrent \
-v /home/pi/dirve/data/qbittorrent:/config \
-v /home/pi/dirve/Download:/downloads \
-v /home/pi/dirve:/home/pi/dirve \
-e PGID=1000 -e PUID=1000 \
-e UMASK_SET=022 \
-e WEBUI_PORT=8080 \
-e TZ=Asia/Shanghai \
-p 6881:6881 \
-p 6881:6881/udp \
-p 8080:8080 \
lsioarmhf/qbittorrent
emby/embyserver_arm32v7_neon
docker run -d
--name=emby
--restart unless-stopped
--volume /home/pi/data/emby:/config
-v /home/pi/:/home/pi/
<pre><code>--publish 8096:8096
--publish 8920:8920
--env UID=1000
--env GID=1000
--env GIDLIST=1000
emby/embyserver_arm32v7_neon
</code></pre>
docker run -d
–name=emby
–restart unless-stopped
–volume /home/pi/data/emby:/config
-v /home/pi/:/home/pi/
–publish 8096:8096
–publish 8920:8920
–env UID=1000
–env GID=1000
–env GIDLIST=1000
emby/embyserver_arm32v7
kodexplorer
docker run -d -p 8083:80 --name kodexplorer -v "$PWD":/home/pi/dirve yangxuan8282/kodexplorer
docker create \
--name nginx-php-fpm --publish 99:80/tcp \
-v /home/pi/dirve:/home/pi/dirve \
-v /home/pi/dirve:/var/www/ \
edofede/nginx-php-fpm:latest
<h1>docker start nginx-php-fpm</h1>
jupyter 8888
docker create \
--name jupyter -d -p 8888:8888 \
-v /home/pi/dirve/data/jupyter/jupyter_notebook_config.py/jupyter_notebook_config.py:/home/jovyan/.jupyter/jupyter_notebook_config.py \
-v /home/pi/dirve/data/jupyter/jupyter_notebook_config.py/jupyter_notebook_config.py:/root/.jupyter/jupyter_notebook_config.py \
-v /home/pi/dirve:/home/pi/dirve \
-v /home/pi/dirve/data/jupyter/notebooks:/home/jovyan/work \
maxjiang/rpi-jupyter-conda</p>
<h1>进入ssh</h1>
<p>docker exec -it jupyter /bin/bash</p>
<p>docker run --name jupyter -it -d -p 8888:8888 -v /home/pi/dirve/data/jupyter/jupyter_notebook_config.py/jupyter_notebook_config.py:/home/jovyan/.jupyter/jupyter_notebook_config.py -v /home/pi/dirve/data/jupyter/jupyter_notebook_config.py/jupyter_notebook_config.py:/root/.jupyter/jupyter_notebook_config.py -v /home/pi/dirve:/home/pi/dirve -v /home/pi/dirve/data/jupyter/notebooks:/home/jovyan/work maxjiang/rpi-jupyter-conda</p>
<p>docker run -d -p 8888:8888 movalex/rpi-jupyter-conda</p>
<h2>ok</h2>
<p>docker run --name jupyter -it -p 8888:8888 -v /home/pi/dirve/data/jupyter/jupyter_notebook_config.py/jupyter_notebook_config.py:/home/jovyan/.jupyter/jupyter_notebook_config.py -v /home/pi/dirve/data/jupyter/jupyter_notebook_config.py/jupyter_notebook_config.py:/root/.jupyter/jupyter_notebook_config.py -v /home/pi/dirve:/home/pi/dirve -v /home/pi/dirve/data/jupyter/notebooks:/home/jovyan/work movalex/rpi-jupyter-conda</p>
<p>```
docker exec -it 1bc8763227ce /bin/bash
docker pull vincentravera/jupyter-docker
docker run -p 8888:8888 -d vincentravera/jupyter-docker
<h2>linuxserver/jellyfin</h2>
jellyfin是个emby的开源版本
树莓派下使用docker快速安装。
https://jellyfin.org/docs/general/administration/installing.html#docker
docker run -d \
–volume /mnt/b/cache:/cache \
–volume /mnt/:/media \
–user 1000:1000 \
–restart=unless-stopped \
–name jellyfin \
-p 8096:8096 \
jellyfin/jellyfin
```
树莓派快速启动filebrowser文件浏览器
https://github.com/filebrowser/filebrowser/
之前是caddyserver的一个组件,后来独立出来的。
docker run -d
--name=filebrowser
--restart unless-stopped
-v /mnt/:/mnt/pi/
--publish 8099:80
--env UID=1000
--env GID=1000
--env GIDLIST=1000
filebrowser/filebrowser
这样的话就可以访问
访问地址:ip:8099
帐号密码:admin/admin
进入里面设置下目录到/mnt下就可以了