云原生之使用Docker部署Heimdall个人导航页
【摘要】 云原生之使用Docker部署Heimdall个人导航页
一、Heimdall 介绍
Heimdall Application Dashboard 是所有 Web 应用程序的仪表板。不过,它不需要仅限于应用程序,您可以添加指向您喜欢的任何内容的链接。
可以用作个人的网页导航首页。
二、检查docker状态
[root@node ~]# systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2022-11-06 06:02:26 CST; 1 weeks 0 days ago
Docs: https://docs.docker.com
Main PID: 9869 (dockerd)
Tasks: 168
Memory: 2.8G
CGroup: /system.slice/docker.service
├─ 9869 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
├─ 45650 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 3522 -container-ip 192.168.48.2 -container-port 3306
├─ 45656 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 3522 -container-ip 192.168.48.2 -container-port 3306
├─ 46338 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 9300 -container-ip 172.17.0.2 -container-port 9000
├─ 46344 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 9300 -container-ip 172.17.0.2 -container-port 9000
├─ 46357 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 443 -container-ip 172.17.0.2 -container-port 443
├─ 46363 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 443 -container-ip 172.17.0.2 -container-port 443
├─ 46376 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8011 -container-ip 172.17.0.2 -container-port 80
├─ 46382 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 8011 -container-ip 172.17.0.2 -container-port 80
├─ 71708 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 3520 -container-ip 172.17.0.3 -container-port 3000
├─ 71714 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 3520 -container-ip 172.17.0.3 -container-port 3000
├─ 76830 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8080 -container-ip 172.17.0.4 -container-port 8080
├─ 76835 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 8080 -container-ip 172.17.0.4 -container-port 8080
├─ 76849 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 6881 -container-ip 172.17.0.4 -container-port 6881
├─ 76854 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 6881 -container-ip 172.17.0.4 -container-port 6881
├─ 76868 /usr/bin/docker-proxy -proto udp -host-ip 0.0.0.0 -host-port 6881 -container-ip 172.17.0.4 -container-port 6881
├─ 76874 /usr/bin/docker-proxy -proto udp -host-ip :: -host-port 6881 -container-ip 172.17.0.4 -container-port 6881
├─101732 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 9200 -container-ip 192.168.32.3 -container-port 9100
├─101746 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 9200 -container-ip 192.168.32.3 -container-port 9100
├─101760 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 3010 -container-ip 192.168.32.4 -container-port 3000
├─101766 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 3010 -container-ip 192.168.32.4 -container-port 3000
├─102555 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 9122 -container-ip 192.168.32.2 -container-port 9090
├─102561 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 9122 -container-ip 192.168.32.2 -container-port 9090
├─116950 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 9800 -container-ip 172.17.0.5 -container-port 9000
└─116955 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 9800 -container-ip 172.17.0.5 -container-port 9000
Nov 07 17:13:13 node dockerd[9869]: time="2022-11-07T17:13:13.437764628+08:00" level=info msg="ignoring event" container=5c2c7245e3d7c9...skDelete"
Nov 07 17:22:59 node dockerd[9869]: time="2022-11-07T17:22:59.706854426+08:00" level=info msg="ignoring event" container=9ee6365478b1b3...skDelete"
Nov 09 17:39:21 node dockerd[9869]: time="2022-11-09T17:39:21.635764314+08:00" level=info msg="ignoring event" container=3e1008e973becd...skDelete"
Nov 09 17:48:07 node dockerd[9869]: time="2022-11-09T17:48:07.633429323+08:00" level=info msg="Pull session cancelled"
Nov 09 17:48:08 node dockerd[9869]: time="2022-11-09T17:48:08.335184004+08:00" level=error msg="Not continuing with pull after error: c...canceled"
Nov 11 00:44:36 node dockerd[9869]: time="2022-11-11T00:44:36.758834914+08:00" level=info msg="ignoring event" container=3d1d952e40c6d7...skDelete"
Nov 11 00:48:57 node dockerd[9869]: time="2022-11-11T00:48:57.472382417+08:00" level=info msg="ignoring event" container=6ae040e9643b73...skDelete"
Nov 13 14:34:13 node dockerd[9869]: time="2022-11-13T14:34:13.306710904+08:00" level=info msg="ignoring event" container=607074fd6da226...skDelete"
Nov 13 14:35:17 node dockerd[9869]: time="2022-11-13T14:35:17.974604494+08:00" level=info msg="ignoring event" container=81100fca24b68a...skDelete"
Nov 13 14:36:26 node dockerd[9869]: time="2022-11-13T14:36:26.538414842+08:00" level=info msg="ignoring event" container=adf8be72d97d2b...skDelete"
Hint: Some lines were ellipsized, use -l to show in full.
三、下载Heimdall
[root@node ~]# docker pull linuxserver/heimdall
Using default tag: latest
latest: Pulling from linuxserver/heimdall
538130908139: Pull complete
bf1637661deb: Pull complete
22c7fe8cf52a: Pull complete
fdc1135d5fa3: Pull complete
810ebf78201e: Pull complete
e11162508dc2: Pull complete
4a391c89b7ac: Pull complete
214e00b0ffee: Pull complete
0beb826dc6fe: Pull complete
d6cc44da9700: Pull complete
Digest: sha256:e2f8f819fa3bb4caa76d4d529979b89cf564cc1267baa6db8a102988bc25d0f9
Status: Downloaded newer image for linuxserver/heimdall:latest
docker.io/linuxserver/heimdall:latest
四、部署Heimdall
1.创建数据目录
[root@node ~]# mkdir -p /data/heimdall
[root@node ~]# cd /data/heimdall/
[root@node heimdall]#
2.创建Heimdall容器
docker run -d \
--name=heimdall \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Asia/Shanghai \
-p 8097:80 \
-p 473:443 \
-v /data/heimdall/config:/config \
--restart unless-stopped \
linuxserver/heimdall:latest
3.查看Heimdall容器状态
[root@node heimdall]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
35bba0c0b574 linuxserver/heimdall:latest "/init" 10 seconds ago Up 8 seconds 0.0.0.0:8097->80/tcp, :::8097->80/tcp, 0.0.0.0:473->443/tcp, :::473->443/tcp heimdall
五、访问Heimdall
六、添加网站链接
1.添加网站链接
2.查看主页效果
3.访问网站链接
【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)