Loading

摘要: 16、在dockerfile中使用非root用户前言: 当在运行容器时,默认都是以root的账号进行启动的,但这个root账号和宿主机的root账号的权限 是不一样的,会受到capabilities的限制。那如果是非特权的容器,使用容器的root账号启动是否 安全的呢。 (1) 启动一个 cento 阅读全文
posted @ 2023-04-13 11:22 云起时。 阅读(1427) 评论(0) 推荐(0) 编辑
摘要: Git操作 作者 刘畅 时间 2023-02-24 目录 1 git语法 1.1 git概念 1.2 git命令帮助 1.3 git状态 2 git安装 3 git基本操作 3.1 版本库使用流程 3.2 在版本库中删除文件 3.3 在版本库中修改文件的名称 3.4 使用log查看git提交到版本库 阅读全文
posted @ 2023-04-13 11:15 云起时。 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 1、Sublime Text 修改文件编码和换行符 1.1 设置项优化 { "ignored_packages": [ "Vintage", ], // 设置主题 "theme": "auto", "color_scheme": "Mariana.sublime-color-scheme", // 阅读全文
posted @ 2023-04-12 14:50 云起时。 阅读(580) 评论(0) 推荐(0) 编辑
摘要: 20、容器安全之启用用户命名空间 20.1、说明 1、在 host namespace 中运行容器 因为用户的 uid 在整个节点上是共享的,容器里的 uid 与宿主机的 uid 可能会有冲突。容器内的root用户就是宿主机的root用户,容器内uid=1000的用户就是宿主机uid=1000的用户 阅读全文
posted @ 2023-04-08 16:59 云起时。 阅读(1514) 评论(0) 推荐(0) 编辑
摘要: 1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" 6 content="width=device-width, user-scalable=no, initia 阅读全文
posted @ 2022-10-15 14:41 云起时。 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" 6 content="width=device-width, user-scalable=no, initia 阅读全文
posted @ 2022-10-15 14:40 云起时。 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" 6 content="width=device-width, user-scalable=no, initia 阅读全文
posted @ 2022-10-15 14:39 云起时。 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" 6 content="width=device-width, user-scalable=no, initia 阅读全文
posted @ 2022-10-15 14:38 云起时。 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" 6 content="width=device-width, user-scalable=no, initia 阅读全文
posted @ 2022-10-15 14:37 云起时。 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" 6 content="width=device-width, user-scalable=no, initia 阅读全文
posted @ 2022-10-15 14:37 云起时。 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" 6 content="width=device-width, user-scalable=no, initia 阅读全文
posted @ 2022-09-28 20:19 云起时。 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" 6 content="width=device-width, user-scalable=no, initia 阅读全文
posted @ 2022-09-23 20:37 云起时。 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" 6 content="width=device-width, user-scalable=no, initia 阅读全文
posted @ 2022-08-29 19:53 云起时。 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" 6 content="width=device-width, user-scalable=no, initia 阅读全文
posted @ 2022-08-24 14:21 云起时。 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" 6 content="width=device-width, user-scalable=no, initia 阅读全文
posted @ 2022-08-20 19:11 云起时。 阅读(24) 评论(0) 推荐(0) 编辑