摘要:
docker container update --restart=always 容器名字 https://www.liangzl.com/get-article-detail-130403.html docker update -m 500m --memory-swap -1 9f docker 阅读全文
摘要:
使用docker images时,可能会出现REPOSITORY和TAG均为none的镜像 docker tag IMAGEID(镜像id) REPOSITORY:TAG(仓库:标签) 参考:https://blog.csdn.net/yjk13703623757/article/details/7 阅读全文
摘要:
https://blog.csdn.net/bbwangj/article/details/81203381 阅读全文
摘要:
pipeline语法:https://jenkins.io/zh/doc/book/pipeline/docker/ groovy 语法:http://groovy-lang.org/syntax.html#_keywords 示例:https://www.cnblogs.com/zoujiaoji 阅读全文
摘要:
修改SSH配置文件以下选项,去掉#注释,将四个选项启用: vi /etc/ssh/sshd_config 重启ssh服务,并设置开机启动: http://www.fecmall.com/topic/592 阅读全文
摘要:
https://blog.csdn.net/JackLiu16/article/details/79365878 阅读全文
摘要:
方法1: 运行visudo(或者vi /etc/sudoers)命令 在## Same thing without a password # %wheel ALL=(ALL) NOPASSWD: ALL 下方添加一个类似的行 oracle ALL=(ALL) NOPASSWD: ALL 方法2: v 阅读全文
摘要:
方法1: 注意、服务也可以使用下面方法设置开机启动,如追加rc.local文件追加/usr/bin/rsync --daemon就是开启启动rsync服务 1、首先,脚本具有可执行权限 1 chmod 755 inotify.sh 1 chmod 755 inotify.sh 1 chmod 755 阅读全文
摘要:
默认情况下,Python中的成员函数和成员变量都是公开的(public),在python中没有类似public,private等关键词来修饰成员函数和成员变量。在python中定义私有变量只需要在变量名或函数名前加上 ”__“两个下划线,那么这个函数或变量就是私有的了。在内部,python使用一种 阅读全文
摘要:
问题:当以普通用户身份去使用docker images时,出现以下错误: 可以看到当前用户没有读写权限,需要吧当前用户添加到有读写权限的docker组中 步骤: 1. 查看有无docker 组cat /etc/group |grep docker, 没有的话建一个组sudo groupadd doc 阅读全文