摘要:
一、查询hosts文件 进入容器内部,查询配置文件,会显示自己以及(– link)软连接的容器IP docker exec -it container_id /bash/sh cat /etc/hosts 二、使用inspect命令 在容器外部,然后通过inspect命令来查询IP地址 docker 阅读全文
posted @ 2022-08-17 16:52
xyztank
阅读(4982)
评论(0)
推荐(0)
摘要:
一、背景 在windows上编辑好shell脚本,然后在linux系统中执行时,报错/bin/bash^M: bad interpreter: No such file or directory。 在查询原因后,发现在windows下创建编辑的shell脚本是dos格式的,而linux却是只能执行格 阅读全文
posted @ 2022-08-17 13:59
xyztank
阅读(1681)
评论(0)
推荐(0)

浙公网安备 33010602011771号