LoginSignup
1
2

More than 5 years have passed since last update.

Docker for Windowsの使い方メモ

Last updated at Posted at 2017-05-30

Toolboxじゃなくて、Windows 10から使えるようになったDocker for Windowsの使い方メモ

大前提

  • コマンドプロンプトではなく、PowerShellを使うこと

もしかしたらパイプをうまく使えばコマンドプロンプトでもいけるかもだけど、 $()とかが使えないのでPowerShellでやる。
基本的にはLinuxのdockerコマンドの ` を $()に書き換えればよさそう。

停止したコンテナをまとめて削除する

docker rm $(docker ps -qa)

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

LinuxベースのコンテナのDockerfile作った時にシェルのどこかで改行コードがCRLFになってしまっている。LFに置換する。

ちょこちょこ追記する予定

1
2
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
1
2