docs.docker.jp
docs.docker.jp copied to clipboard
Part 6 バインドマウントのWindows用コマンドにコードブロックが存在しない
06_bind_mounts.rst L215~230
現状
**Mac / Linux**
.. code-block:: bash
$ docker run -dp 127.0.0.1:3000:3000 \
-w /app --mount type=bind,src="$(pwd)",target=/app \
node:18-alpine \
sh -c "yarn install && yarn run dev"
**Windows**
このコマンドを PowerShell で実行します。
$ docker run -dp 127.0.0.1:3000:3000 `
-w /app --mount "type=bind,src=$pwd,target=/app" `
node:18-alpine `
sh -c "yarn install && yarn run dev"
修正案
**Mac / Linux**
.. code-block:: bash
$ docker run -dp 127.0.0.1:3000:3000 \
-w /app --mount type=bind,src="$(pwd)",target=/app \
node:18-alpine \
sh -c "yarn install && yarn run dev"
**Windows**
このコマンドを PowerShell で実行します。
.. code-block:: bash
$ docker run -dp 127.0.0.1:3000:3000 `
-w /app --mount "type=bind,src=$pwd,target=/app" `
node:18-alpine `
sh -c "yarn install && yarn run dev"