docker
文章平均质量分 75
永远在路上啊
这个人比较懒,什么也没留下
展开
-
ubuntu docker-compose设置开机自启动一些容器
基础知识 一些Linux发行版使用一个表来管理在系统开机时要自动启动的进程。在 Linux系上,这个表通常位于专门文件/etc/inittab中。另外一些系统 (比如现在流行的Ubuntu Linux发行版)则采用/etc/init.d目录,将开机时 启动或停止某个应用的脚本放在这个目录下。这些脚本通过/etc/rcX.d目录 下的入口(entry)启动,这里的X代表运行级(run level)。 Linux操作系统的init系统采用了运行级。运行级决定了init进程运行 /etc原创 2020-12-15 20:19:28 · 2228 阅读 · 0 评论 -
Harbor安装
下载相应的压缩包:Harbor这里我下载的是1.9.3解压:tar xvf harbor-offline-installer-v1.9.3.tgz配置相应的信息:在harbor.yml文件中,找到hostname,然后将其后边的数据改成你的机器的IP地址:hostname: 192.168.10.1安装:sudo ./install.sh如果在这一步出现error:ERROR: for proxy Cannot start service proxy: driver failed ..原创 2020-12-07 16:32:01 · 713 阅读 · 0 评论 -
docker容器中不能上网的一种解决方法
After A LOT of time trying to solve this issue I think I finallyfound a solution in an ebook I found on the internet.Here's the steps I took to solve the issue:$ sudo service docker stop$ sudo nano /etc/default/dockerEdit the file and uncomment the转载 2020-10-06 23:10:12 · 990 阅读 · 0 评论 -
Weave 分配的IP的MTU值修改的方法
首先,如果你没有安装weave的话,可以在安装的时候直接执行如下语句WEAVE_MTU=1500 weave launch如果已经安装好了weave的话,那么需要把weave reset以下: //先执行下weave reset weave reset //再重新执行如下这句话 WEAVE_MTU=1500 weave launch这样就可以把MTU改成1500了,如果想改成别的,就把1500改成你需要的值...原创 2020-08-24 14:24:04 · 264 阅读 · 0 评论 -
Docker 容器访问宿主机器的MySql
1.首先打开 vim /etc/mysql/mysql.conf.d/mysqld.cnf这个文件,然后将 bind-address = 127.0.0.1改成bind-address = 0.0.0.0然后进入mysql,在mysql中输入grant all privileges on *.* to 'root'@'%' identified by 'pswd' with grant option;//注意'pswd'是你自己的mysql的密码,你得在这里改下。这样就可以了,原创 2020-05-24 17:58:21 · 879 阅读 · 0 评论