云原生之使用Docker部署OneNav个人书签管理器

云原生之使用Docker部署OneNav个人书签管理器

  • 一、OneNav介绍
    • 1.OneNav简介
    • 2.OneNav特点
  • 二、检查本地docker环境
    • 1.检查docker版本
    • 2.检查docker状态
  • 三、下载onenav镜像
  • 四、部署OneNav应用
    • 1.创建数据目录
    • 2.创建OneNav容器
    • 3.查看OneNav容器状态
  • 五、访问OneNav首页
  • 六、访问OneNav后台
    • 1.登录OneNav后台
    • 2.访问OneNav后台

一、OneNav介绍

1.OneNav简介

OneNav是一款使用PHP + SQLite 3开发的导航/书签管理器,支持Material Design风格,界面简洁,使用方便。

2.OneNav特点

  • 支持后台管理
  • 支持私有链接
  • 支持多种主题风格(默认内置2套模板)
  • 支持链接信息自动识别
  • 支持API
  • 支持右键菜单管理

二、检查本地docker环境

1.检查docker版本

[root@jeven ~]# docker version
Client: Docker Engine - Community
 Version:           20.10.17
 API version:       1.41
 Go version:        go1.17.11
 Git commit:        100c701
 Built:             Mon Jun  6 23:05:12 2022
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.17
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.17.11
  Git commit:       a89b842
  Built:            Mon Jun  6 23:03:33 2022
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.6
  GitCommit:        10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1
 runc:
  Version:          1.1.2
  GitCommit:        v1.1.2-0-ga916309
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0


2.检查docker状态

[root@jeven ~]# 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 Wed 2022-07-27 08:42:11 CST; 5 months 1 days ago
     Docs: https://docs.docker.com
 Main PID: 9747 (dockerd)
   CGroup: /system.slice/docker.service
           ├─ 9747 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
           ├─59278 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8566 -container-ip 172.19.0.3 -container-port 80...
           └─59284 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 8566 -container-ip 172.19.0.3 -container-port 8080

Dec 27 12:25:58 jeven dockerd[9747]: time="2022-12-27T12:25:58+08:00" level=info msg="Firewalld: docker zone already exis...urning"
Dec 27 12:33:11 jeven dockerd[9747]: time="2022-12-27T12:33:11.097759654+08:00" level=info msg="ignoring event" container...Delete"
Dec 27 12:33:12 jeven dockerd[9747]: time="2022-12-27T12:33:12.392394326+08:00" level=info msg="ignoring event" container...Delete"
Dec 27 12:36:10 jeven dockerd[9747]: time="2022-12-27T12:36:10.759709948+08:00" level=info msg="Firewalld: interface br-5...urning"
Dec 27 12:36:10 jeven dockerd[9747]: time="2022-12-27T12:36:10.879472987+08:00" level=warning msg="IPv4 forwarding is dis... work."
Dec 27 12:36:10 jeven dockerd[9747]: time="2022-12-27T12:36:10.904829465+08:00" level=warning msg="IPv4 forwarding is dis... work."
Dec 27 12:36:10 jeven dockerd[9747]: time="2022-12-27T12:36:10.930135772+08:00" level=warning msg="IPv4 forwarding is dis... work."
Dec 27 12:36:11 jeven dockerd[9747]: time="2022-12-27T12:36:11+08:00" level=info msg="Firewalld: docker zone already exis...urning"
Dec 27 12:36:11 jeven dockerd[9747]: time="2022-12-27T12:36:11.235494624+08:00" level=warning msg="IPv4 forwarding is dis... work."
Dec 27 12:36:11 jeven dockerd[9747]: time="2022-12-27T12:36:11+08:00" level=info msg="Firewalld: docker zone already exis...urning"
Hint: Some lines were ellipsized, use -l to show in full.

三、下载onenav镜像

[root@jeven ~]# docker pull helloz/onenav:0.9.29
Using default tag: latest
latest: Pulling from helloz/onenav
339de151aab4: Pull complete 
4f4fb700ef54: Pull complete 
64e2d91f6a6b: Pull complete 
aedf58cb2c7e: Pull complete 
03e9996f76bb: Pull complete 
16141d74ea3a: Pull complete 
Digest: sha256:da1030a7d0b01f3918f7806eef984f686d3578e4de34d592fb4f956341b6a741
Status: Downloaded newer image for helloz/onenav:latest
docker.io/helloz/onenav:0.9.29


四、部署OneNav应用

1.创建数据目录


[root@jeven ~]# mkdir -p /data/onenav
[root@jeven ~]# cd /data/onenav/
[root@jeven onenav]# 

2.创建OneNav容器


[root@jeven onenav]# docker run -d --name="onenav" --restart always -p 8011:80  -e USER='admin' -e PASSWORD='admin'  -v /data/onenav/data:/data/wwwroot/default/data  helloz/onenav:0.9.29
8e43316064d1a938600f1309883fac6b2e63279c9d2fe90fe554eecfd9fda827


3.查看OneNav容器状态

[root@jeven onenav]# docker ps
CONTAINER ID   IMAGE                    COMMAND                  CREATED          STATUS                        PORTS                                       NAMES
8e43316064d1   helloz/onenav            "/usr/sbin/run.sh"       32 seconds ago   Up 30 seconds                 0.0.0.0:8011->80/tcp, :::8011->80/tcp       onenav


五、访问OneNav首页

云原生之使用Docker部署OneNav个人书签管理器_第1张图片

六、访问OneNav后台

1.登录OneNav后台

云原生之使用Docker部署OneNav个人书签管理器_第2张图片

2.访问OneNav后台

云原生之使用Docker部署OneNav个人书签管理器_第3张图片

你可能感兴趣的:(云原生,云原生,docker,容器)