随笔分类 - 运维
摘要:gitlab-runner的配置 concurrent = 1 check_interval = 0 [session_server] session_timeout = 1800 [[runners]] name = "yourname" url = "https://git.yourname.c
阅读全文
摘要:如果还没有 docker group 就添加一个: 将用户加入该 group 内。然后退出并重新登录就生效啦。 重启 docker 服务 或 切换当前会话到新 group 或者重启 X 会话 或者 注意,最后一步是必须的,否则因为 groups 命令获取到的是缓存的组信息,刚添加的组信息未能生效,所
阅读全文
摘要:systemctl enable docker # 开机自动启动docker systemctl start docker # 启动docker systemctl restart docker # 重启dokcer
阅读全文
摘要:查看日志 进入容器 进入redis容器 查看某个属性(这里是查看tensorflow的启动日志,方便查找登录密码)
阅读全文
摘要:git文件损坏的处理 cp -R foo foo-backup git clone git@www.mydomain.de:foo foo-newclone rm -rf foo/.git cp -R foo-newclone/.git foo rm -rf foo-newclone 复制.git文
阅读全文
摘要:1、首先建立基础的nginx服务器。 CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES6afe2e74773a nginx:latest "nginx -g 'daemon ..." 6 seconds ago Up 5 seconds 0.
阅读全文
摘要:最后一个小点"."必须要有。是告诉Docker到本地目录中去找Dockerfile文件。
阅读全文
摘要:后面的 bin/bash 是什么意思? 这是表示载入容器后运行bash ,docker中必须要保持一个进程的运行,要不然整个容器就会退出。这个就表示启动容器后启动bash。
阅读全文
摘要:转化为docx pandoc -f markdown -t docx collection.markdown -o api.docx 转化为html pandoc collection.markdown -o collection.html -s
阅读全文
摘要:[user] name = yourname email = yourname@email.com [core] quotepath = false [credential] helper = store 配置虚拟机用户目录下的.gitconfig
阅读全文
摘要:1、开始 ->运行->regedit。2、Ctrl+F 查找git_gui和git_shell,删除这两项即可 。3、或依次查找HKEY_CLASSES_ROOT->Directory->Background->shell,可以看到git_gui和git_shell,删除这两项即可。
阅读全文
摘要:ssh-keygen -t rsa -C “yourname@gmail.com”
阅读全文
摘要:安装jenkins+gogs报错Failed to connect to repository : Error performing command: git.exe ls-remot结果发现只需要在jenkins里面,安装gogs插件就好了。
阅读全文
摘要:部分内容整理自网络,仅供参考。 1、git临时存取文件。使用场景:比如开发做到一半,才发现,忘了切分支。或者是做到一半,突然出现发现另一个分支上,有紧急bug,必须赶快切分支过去修改。这时候,用git stash暂存是最快的办法。可以将当前修改保存到缓存区里,切换到另一个分支工作。工作完成后,再切回
阅读全文

浙公网安备 33010602011771号