常用docker命令,及一些坑
摘要:常用docker命令,及一些坑 常用命令 查看容器的root用户密码 docker logs 2>&1 | grep '^User: ' | tail -n1 因为docker容器启动时的root用户的密码是随机分配的。所以,通过这种方式就可以得到redmine容器的root用户的密码了。 查看容器日志 docker logs -f ...
阅读全文
Docker 给运行中的容器设置端口映射的方法
摘要:一、概念 Docker 端口映射即映射容器内应用的服务端口到本机宿主机器。 二、实现 当容器中运行一些网络应用,要让外部访问这些应用时,可以通过 -P 或 -p 参数两种方式来指定端口映射。 1. 随机映射 使用 -P 参数时,Docker 会随机映射一个端口到内部容器开放的网络端口,如下开启一个
阅读全文
docker 端口映射错误解决方法
摘要:COMMAND_FAILED: '/sbin/iptables -t nat -A DOCKER -p tcp -d 0/0 --dport 8111 -j DNAT --to-destination 172.17.0.6:8111 ! -i docker0' failed: iptables: N
阅读全文
DataError: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)
摘要:I copy-paste solution from Tauras link. In console run psql: sudo -u postgres psql postgres then in psql console execute sequence of commands: update
阅读全文
ubuntu 挂起后无法唤醒。。
摘要:tryed method:apt install light-locker light-locker-settings 方法: 一、打开终端在/etc/pm/sleep.d/建立20_custom-ehci_hcd文件 sudo gedit /etc/pm/sleep.d/20_custom-ehci_hcd 二、复制下面代码到文件里保存并退出 #!/bin/sh #inspired by ht...
阅读全文
Can not create graphically new user
摘要:Impacted versions: 10.0 community Steps to reproduce: create user without image Current behavior:stack trace with : "cannot determine region size; use
阅读全文
openvpn ERROR: Cannot open TUN/TAP
摘要:把网关(wheezy)更新到jessie之后,系统里的openvpn起不来,查看一下日志报错: 进到/dev目录下发现根本就没有/dev/net/tun,然后我搜索内核中是否有这个模块: 解决: 5.ok,再次执行openvpn-client脚本
阅读全文
vim利用cscope查看php源代码(cscope: no source files found)
摘要:1、首先安装ctags 首先是ctags的安装,推荐使用exuberant ctags,我们可以从其官方网站上下载它的源码包,进行解压缩,编译,安装即可。 1)ubuntu安装 sudo apt-get install exuberant-ctags ( 或者下载 手动安装 download cta
阅读全文