Skip to content

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

@SaitoYuto

Description

@SaitoYuto

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions