一、Notepad工具介绍
Notepad是一款开源本地记事本,可用于个人任务及计划的管理。
二、检查docker状态
[root@docker ~]# 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 Thu 2022-10-27 19:14:35 CST; 5h 19min ago
Docs: https://docs.docker.com
Main PID: 178958 (dockerd)
Tasks: 31
Memory: 1.5G
CGroup: /system.slice/docker.service
├─112579 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8083 -container-ip 172.17.0.2 -container-port 8083
├─112585 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 8083 -container-ip 172.17.0.2 -container-port 8083
└─178958 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
Oct 27 23:34:38 docker dockerd[178958]: time="2022-10-27T23:34:38.926785289+08:00" level=info msg="ignoring event" container=ecce7706171...kDelete"
Oct 27 23:34:43 docker dockerd[178958]: time="2022-10-27T23:34:43.478809355+08:00" level=info msg="ignoring event" container=b009239313f...kDelete"
Oct 28 00:15:54 docker dockerd[178958]: time="2022-10-28T00:15:54.123025675+08:00" level=info msg="Attempting next endpoint for pull aft...unknown"
Oct 28 00:17:00 docker dockerd[178958]: time="2022-10-28T00:17:00.986490941+08:00" level=error msg="Not continuing with pull after error: error ...
Oct 28 00:29:12 docker dockerd[178958]: time="2022-10-28T00:29:12.451622746+08:00" level=info msg="ignoring event" container=0de95375552...kDelete"
Oct 28 00:29:13 docker dockerd[178958]: time="2022-10-28T00:29:13.563834591+08:00" level=info msg="ignoring event" container=847aef8f772...kDelete"
Oct 28 00:29:13 docker dockerd[178958]: time="2022-10-28T00:29:13.698677749+08:00" level=info msg="ignoring event" container=a13c1003805...kDelete"
Oct 28 00:29:17 docker dockerd[178958]: time="2022-10-28T00:29:17.711832500+08:00" level=info msg="ignoring event" container=0411c259afc...kDelete"
Oct 28 00:29:18 docker dockerd[178958]: time="2022-10-28T00:29:18.148169291+08:00" level=info msg="ignoring event" container=51e514acbce...kDelete"
Oct 28 00:29:18 docker dockerd[178958]: time="2022-10-28T00:29:18.664761405+08:00" level=info msg="ignoring event" container=bbec52ba9ba...kDelete"
Hint: Some lines were ellipsized, use -l to show in full.
三、下载Notepad工具镜像
[root@docker ~]#docker pull yhlben/notepad
latest: Pulling from yhlben/notepad
769fec264d24: Pull complete
74f49fd464b0: Pull complete
c54f94e63b54: Pull complete
64781fa2b0d4: Pull complete
698d3bb52842: Pull complete
Digest: sha256:3706f11d72d107057009244778fa2583331f746915357e76cd437b55727ff508
四、安装Notepad
1.创建Notepad容器
[root@docker ~]# docker run -d --name notepad --restart always -p 8083:8083 yhlben/notepad
5e363f5d01170dcb283421c5f309f550b6c13651c45bffe8d39d4a04c358e7dd
2.查看Notepad容器状态
[root@docker ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5e363f5d0117 yhlben/notepad "/bin/sh -c 'node ap…" 5 minutes ago Up 5 minutes 0.0.0.0:8083->8083/tcp, :::8083->8083/tcp notepad
五、访问Notepad的web首页
六、使用Notepad工具
1.添加任务
2.统计任务数据
3.下载任务数据