docs.docker.jp icon indicating copy to clipboard operation
docs.docker.jp copied to clipboard

Part 6 バインドマウントのWindows用コマンドにコードブロックが存在しない

Open SaitoYuto opened this issue 1 month ago • 0 comments

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"

SaitoYuto avatar Jan 22 '25 19:01 SaitoYuto