- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2022 12:35 PM
When attempting to build a Docker image for cisco-ios-cli-6.86 using a ned skeleton on WSL2 (Windows Subsystem for Linux)
I get the following error:
Solved! Go to Solution.
- Labels:
-
DevOps
-
Other NSO Topics
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2022 03:26 PM - edited 10-20-2022 04:30 PM
All right, after another 2 hours, I figured out it out. It was in fact a line ending problem. My very quick and dirty fix was to install dos2unix and then fix all the files in /src/nid.
RUN apt-get update && apt-get install -y dos2unix
RUN dos2unix /src/nid/*
edit: by setting #
git config --global core.autocrlf input
I can make sure that the proper line endings are correctly applied when I clone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2022 01:29 PM - edited 10-20-2022 01:33 PM
I'm wondering if my problem is similar to this "file not found" issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2022 03:26 PM - edited 10-20-2022 04:30 PM
All right, after another 2 hours, I figured out it out. It was in fact a line ending problem. My very quick and dirty fix was to install dos2unix and then fix all the files in /src/nid.
RUN apt-get update && apt-get install -y dos2unix
RUN dos2unix /src/nid/*
edit: by setting #
git config --global core.autocrlf input
I can make sure that the proper line endings are correctly applied when I clone.
