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.
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.
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.
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide