其他分享
首页 > 其他分享> > docker demos

docker demos

作者:互联网

换sources

vi /etc/apt/sources.list

deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb https://mirrors.aliyun.com/debian-security/ bullseye-security main
deb-src https://mirrors.aliyun.com/debian-security/ bullseye-security main
deb https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib

temp

cat /sys/class/thermal/thermal_zone0/temp

images

docker pull gcc:latest
docker pull filebrowser/filebrowser:latest
docker pull haishanh/yacd:latest
docker pull dreamacro/clash:latest
docker pull wahyd4/aria2-ui:latest
docker pull dperson/samba:latest
docker pull sanjusss/aliyun-ddns:latest

ipv6 ssh

vim /etc/ssh/sshd_config
AddressFamily any #enable ipv6
netstat -tupln

run

docker run --name filebrowser -v /root:/srv -v /root/filebrowser.db:/database.db -v /root/filebrowser.json:/.filebrowser.json 
    --user $(id -u):$(id -g) -p 90:80 filebrowser/filebrowser
docker run -d --name aria2-ui -v /home/down:/data -p 80:80 wahyd4/aria2-ui
docker run -it --name samba  -p 445:445 -v /home/down:/mount -d dperson/samba -u "pwd" -r -s "Downloads;/mount/;yes;no;no;all;user"

docker run -p --name yacd 1234:80 -d --rm haishanh/yacd
docker run -d --name=clash -v "$PWD/config.yaml:/root/.config/clash/config.yaml" -p "7890:7890" -p "9090:9090" --restart=unless-stopped dreamacro/clash

docker run -d --name=aliyun --restart=always --net=host     -e "AKID="     -e "AKSCT="     -e "DOMAIN="     -e "REDO=30"     -e "TTL=60"     -e "TIMEZONE=8.0"     -e "TYPE=AAAA"  sanjusss/aliyun-ddns

load/save export/import

docker save $(docker images | grep -v REPOSITORY | awk 'BEGIN{OFS=":";ORS=" "}{print $1,$2}') -o save-master.tar
docker load -i save-master.tar
docker export $(docker images | grep -v REPOSITORY | awk 'BEGIN{OFS=":";ORS=" "}{print $1,$2}') -o export-master.tar
docker export $container_id > 容器快照名
cat centos.tar | docker import - my/centos:v888 

start

docker start clash
docker start aliyun
docker start aria2-u
docker start samba
docker start yacd

标签:filebrowser,--,demos,aliyun,docker,main,com
来源: https://www.cnblogs.com/yan1345/p/15707930.html