云原生之使用Docker部署Minimalist-web-notepad个人笔记本

简介: 云原生之使用Docker部署Minimalist-web-notepad个人笔记本

一、Minimalist-web-notepad介绍

Minimalist-web-notepad是一款类似于notepad的纯文本笔记本,可以用来做记事本,也可以用来做临时记录的工具。

二、检查docker状态

1.检查docker版本

[root@docker ~]# docker -v
Docker version 20.10.18, build b40c2f6

2.检查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 Wed 2022-10-26 13:21:18 CST; 11h ago
     Docs: https://docs.docker.com
 Main PID: 9793 (dockerd)
    Tasks: 36
   Memory: 1.3G
   CGroup: /system.slice/docker.service
           ├─  9793 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
           ├─173082 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 3000 -container-ip 172.25.0.3 -container-port 3000
           └─173091 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 3000 -container-ip 172.25.0.3 -container-port 3000

Oct 26 16:59:06 docker dockerd[9793]: time="2022-10-26T16:59:06.456488535+08:00" level=error msg="42d62e81dc88347ac44d0ef315bef17c064cb...ntainer"
Oct 26 16:59:06 docker dockerd[9793]: time="2022-10-26T16:59:06.456534462+08:00" level=error msg="Handler for POST /v1.25/containers/42d62e81dc...
Oct 26 17:00:42 docker dockerd[9793]: time="2022-10-26T17:00:42.218302334+08:00" level=info msg="ignoring event" container=3e3b26f20611...kDelete"
Oct 26 17:00:42 docker dockerd[9793]: time="2022-10-26T17:00:42.227578258+08:00" level=info msg="ignoring event" container=0bd46f5d8ec4...kDelete"
Oct 26 17:00:43 docker dockerd[9793]: time="2022-10-26T17:00:43.707019873+08:00" level=info msg="ignoring event" container=250cba155045...kDelete"
Oct 26 17:00:44 docker dockerd[9793]: time="2022-10-26T17:00:44.228501588+08:00" level=info msg="ignoring event" container=d1ad595bda8b...kDelete"
Oct 26 17:00:45 docker dockerd[9793]: time="2022-10-26T17:00:45.161097871+08:00" level=info msg="ignoring event" container=66dd8a21b646...kDelete"
Oct 26 17:00:45 docker dockerd[9793]: time="2022-10-26T17:00:45.276369806+08:00" level=info msg="ignoring event" container=3aa83e0effdb...kDelete"
Oct 26 17:00:45 docker dockerd[9793]: time="2022-10-26T17:00:45.392793529+08:00" level=info msg="ignoring event" container=12cc3dae3933...kDelete"
Oct 26 17:00:45 docker dockerd[9793]: time="2022-10-26T17:00:45.669979290+08:00" level=info msg="ignoring event" container=03d669438b91...kDelete"
Hint: Some lines were ellipsized, use -l to show in full.

三、下载Minimalist-web-notepad镜像

[root@docker ~]# docker pull jdreinhardt/minimalist-web-notepad
Using default tag: latest
latest: Pulling from jdreinhardt/minimalist-web-notepad
bf5952930446: Pull complete 
a409b57eb464: Pull complete 
3192e6c84ad0: Pull complete 
43553740162b: Pull complete 
d8b8bba42dea: Pull complete 
eb10907c0110: Pull complete 
10568906f34e: Pull complete 
03fe17709781: Pull complete 
98171b7166c8: Pull complete 
3978c2fb05b8: Pull complete 
71bf21524fa8: Pull complete 
24fe81782f1c: Pull complete 
7a2dfd067aa5: Pull complete 
4f55e0effe4d: Pull complete 
e796f788f07f: Pull complete 
7c215e9ce78c: Pull complete 
Digest: sha256:efc19bf1e39f520fe4757606f78811b1f6e7a770b560e269631c384adf019910
Status: Downloaded newer image for jdreinhardt/minimalist-web-notepad:latest
docker.io/jdreinhardt/minimalist-web-notepad:latest

四、创建Minimalist-web-notepad容器

1.创建数据目录

[root@docker ~]# mkdir -p /data/webnotepad
[root@docker ~]# cd /data/webnotepad/

2.目录授权

chmod -R 777 /data/webnotepad/

3.创建Minimalist-web-notepad容器容器

[root@docker webnotepad]# docker run -d --name notepad --restart always -p 89:80 -v /data/webnotepad/data:/var/www/html/_tmp jdreinhardt/minimalist-web-notepad:latest
a13c1003805a79d8164ea9d286b4fcdaeac1be21fbba5b63d95a3a843aba3fa8

4.查看容器状态

[root@docker webnotepad]# docker ps
CONTAINER ID   IMAGE                                       COMMAND                  CREATED          STATUS          PORTS                                       NAMES
a13c1003805a   jdreinhardt/minimalist-web-notepad:latest   "minimalist-web-note…"   29 seconds ago   Up 28 seconds   0.0.0.0:89->80/tcp, :::89->80/tcp           notepad


五、访问Minimalist-web-notepad

image.png

六、使用Minimalist-web-notepad

1.新建在线文本

image.png

2.保存文件

ctrl +s保存

image.png

3.查看保存的文件

image.png

相关文章
|
8月前
|
应用服务中间件 网络安全 nginx
手把手教你使用 Docker 部署 Nginx 教程
本文详解Nginx核心功能与Docker部署优势,涵盖镜像拉取、容器化部署(快速、挂载、Compose)、HTTPS配置及常见问题处理,助力高效搭建稳定Web服务。
3653 4
|
10月前
|
运维 Devops 持续交付
揭秘 Docker 自动部署神器 Websoft9:热门开源软件一键部署
在企业IT建设中,软件部署常面临效率低、易出错等问题。通过Docker与自动化工具,可实现高效、标准化和可追溯的部署流程,提升企业应用交付效率,降低运维门槛,助力中小企业实现自动化部署。
580 5
揭秘 Docker 自动部署神器 Websoft9:热门开源软件一键部署
|
9月前
|
JavaScript 算法 前端开发
【Docker项目实战】使用Docker部署paopao-ce微社区
【Docker项目实战】使用Docker部署paopao-ce微社区
659 84
【Docker项目实战】使用Docker部署paopao-ce微社区
|
10月前
|
设计模式 Linux 开发工具
Docker部署会吗?
本段内容主要介绍了Docker常用命令、Linux基础指令及日志查看方法,还涉及SpringMVC的执行流程、设计模式与注解,适合用于面试中技术能力的展示。
207 0
|
10月前
|
运维 Cloud Native 开发者
Docker:现代化应用开发与部署的神器
Docker:现代化应用开发与部署的神器
316 101
|
9月前
|
存储 Docker Python
docker 部署 sftp
本文介绍SFTP服务的部署与配置,包括users.conf用户配置规则、Docker容器运行命令及上传目录权限说明,重点解析atmoz/sftp镜像的chroot机制与子目录映射,确保用户登录后正确访问/upload目录,并提供Python脚本实现文件上传示例。
756 12
docker 部署 sftp
|
8月前
|
应用服务中间件 Linux nginx
在虚拟机Docker环境下部署Nginx的步骤。
以上就是在Docker环境下部署Nginx的步骤。需要注意,Docker和Nginix都有很多高级用法和细节需要掌握,以上只是一个基础入门级别的教程。如果你想要更深入地学习和使用它们,请参考官方文档或者其他专业书籍。
381 5
|
9月前
|
运维 Linux 数据库
基于 Docker 部署 n8n 指南,新手一看就会
本教程详解如何通过 Docker 快速部署开源自动化工具 n8n,适合新手快速上手。内容涵盖官方部署步骤、常见难点及第三方一键部署方案,助你高效搭建自动化工作流平台。
2254 6
|
8月前
|
存储 NoSQL Redis
手把手教你用 Docker 部署 Redis
Redis是高性能内存数据库,支持多种数据结构,适用于缓存、消息队列等场景。本文介绍如何通过Docker快速拉取轩辕镜像并部署Redis,涵盖快速启动、持久化存储及docker-compose配置,助力开发者高效搭建稳定服务。
2546 8