0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

DockerToolbox on Windows上で【Windows以外のOSで構築された】docker imageがうまく動かない

Posted at

DockerToolbox on Windows上で【Windows以外のOSで構築された】docker imageがうまく動かない

Issue

WSL上でDockerfile書いてdocker imageをつくって他のDockerToolboxを利用しているWindowsメンバーに渡したところrunできなかった
errorはなんとなく"\r"が悪いと書いてある

Solution

DockerToolbox同梱のGitBashがdefaultでのinstallとなっているためWindowsでのUnix改行コードをうまく扱えていない様子
ゆえにgitの設定変更に加えてPJ全体の改行コードを一括返還する

  • git config --global core.autoCRLF false
  • find . -type f -print0 | xargs -0 sed -i -e "s/\r//g"

Backgronud

c.f.
https://qiita.com/yokoh9/items/1ec8099696ade0c1f36e

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?