# Error while running Docker code in Powershell

**URL:** <https://forums.docker.com/t/error-while-running-docker-code-in-powershell/34059>\
**Category:** Docker Desktop\
**Tags:** windows\
**Created:** [June 26, 2017, 5:35pm UTC](https://forums.docker.com/t/error-while-running-docker-code-in-powershell/34059 "2017-06-26T17:35:56Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![jdharmon](https://avatars.discourse-cdn.com/v4/letter/j/76d3ee/32.png) [@jdharmon](https://forums.docker.com/u/jdharmon)\
**Post date:** [June 30, 2017, 11:07pm UTC](https://forums.docker.com/t/error-while-running-docker-code-in-powershell/34059/6 "2017-06-30T23:07:13Z")

</div>

The issue is Git converted line endings to Windows format, and now you have extra carriage returns (^M).

1. Configure Git not to convert line endings on checkout by running  
`git config --global core.autocrlf input`
2. Delete your local repository.
3. Clone it again.

For more info on how Git deals with line endings, see [Formatting and Whitespace](https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_formatting_and_whitespace)

---

_[View the full topic](https://forums.docker.com/t/error-while-running-docker-code-in-powershell/34059)._
