摘要: 查看 (base) [root@VM-12-17-centos test]# vim /etc/sysctl.conf 添加代码:net.ipv4.ip_forward=1 也有人说下面这个文件:反正我试试了没啥用 (base) [root@VM-12-17-centos test]# vim /u 阅读全文
posted @ 2021-12-21 22:04 wqbin 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 但是我们的Dokerfile 非常简单,那么这些多出来的内容是从哪里来的呢。 发现Docker Client会默认发送Dockerfile同级目录下的所有文件到Dockerdaemon中 解决办法有两种: 1.创建.dockerignore文件,把不需要的文件写到里面,该文件包含的目录不会被发送到D 阅读全文
posted @ 2021-12-21 21:47 wqbin 阅读(487) 评论(0) 推荐(0) 编辑
摘要: 查看用户 root@fff52596cfa9:/# cat /etc/passwd root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin bin:x:2:2:bin:/bin:/usr/sbin 阅读全文
posted @ 2021-12-21 13:48 wqbin 阅读(238) 评论(0) 推荐(0) 编辑