![](https://falaylee.cn/wp-content/uploads/2022/05/1651915815-image.png)
1,创建用户container 及设置密码
![](https://falaylee.cn/wp-content/uploads/2022/05/1651915755-image.png)
2,安装container-tools
![](https://falaylee.cn/wp-content/uploads/2022/05/1651915755-image-1.png)
3,修改journald
![](https://falaylee.cn/wp-content/uploads/2022/05/1651915755-image-2.png)
修改 Storage=persistent
![](https://falaylee.cn/wp-content/uploads/2022/05/1651915755-image-4.png)
4,重启journald服务,会生成日志文件。
![](https://falaylee.cn/wp-content/uploads/2022/05/1651915756-image.png)
5,创建文件目录,及拷贝journal日志文件。
![](https://falaylee.cn/wp-content/uploads/2022/05/1651915756-image-1.png)
![](https://falaylee.cn/wp-content/uploads/2022/05/1651915756-image-2.png)
***自己环境需要设置一下加速地址
![](https://falaylee.cn/wp-content/uploads/2022/05/1651915756-image-3.png)
将 registries.conf修改
![](https://falaylee.cn/wp-content/uploads/2022/05/1651915756-image-4.png)
再修改
![](https://falaylee.cn/wp-content/uploads/2022/05/1651915757-image.png)
6.容器操作,需要登陆container用户;
![](https://falaylee.cn/wp-content/uploads/2022/05/1651915757-image-1.png)
7.登录login 远程podman
![](https://falaylee.cn/wp-content/uploads/2022/05/1651915757-image-2.png)
8,拉取镜像rsyslog
![](https://falaylee.cn/wp-content/uploads/2022/05/1651915757-image-3.png)
9.run 容器,创建rsyslog容器 名字未logserver
![](https://falaylee.cn/wp-content/uploads/2022/05/1651915757-image-4.png)
![](https://falaylee.cn/wp-content/uploads/2022/05/1651915757-image-5.png)
10.设置以服务运行,创建目录,且切到目录下
![](https://falaylee.cn/wp-content/uploads/2022/05/1651915758-image.png)
11.将容器以服务方式运行,生成服务。
![](https://falaylee.cn/wp-content/uploads/2022/05/1651915758-image-1.png)
12,重载服务,且设置开机启动,非管理员服务自启再加一条
![](https://falaylee.cn/wp-content/uploads/2022/05/1651915758-image-2.png)
![](https://falaylee.cn/wp-content/uploads/2022/05/1651915758-image-3.png)
13重启验证查看
![](https://falaylee.cn/wp-content/uploads/2022/05/1651915758-image-4.png)