栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

windows:docker standard

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

windows:docker standard

目录

错误提示

问题原因

解决方法:


错误提示

standard_init_linux.go:228: exec user process caused: no such file or directory 

问题原因

windows 平台下git 获取源码时自动转换了换行符 ,导致容器无法识别。

解决方法:

用Visual Studio Code修改回车符为 LF 模式,点击底部的CRLF,选择LF保存。 

 修改git默认模式

# 提交时转换为LF,检出时转换为CRLF
git config --global core.autocrlf true

# 提交时转换为LF,检出时不转换
git config --global core.autocrlf input

# 提交检出均不转换
git config --global core.autocrlf false

推荐:

git config --global core.autocrlf input # 提交时转换为LF,检出时不转换

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/297307.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号