Skip to content

Docker run command from README does not work in windows #2

@Kyle2142

Description

@Kyle2142

The -v option seems to behave differently with Docker for Windows, wherein
-v $(pwd)/config.ini:/usr/src/app/config.ini acts like mkdir /usr/src/app/config.ini

A possible workaround was bind mounting a folder structure like this:

project dir/
└─ config/
     ├─ config.ini
     └─ bot.session

using -v $(pwd)/config:/usr/src/app/config (and changing the source to use this folder).
However, this STILL creates /usr/src/app/config/config.ini/ as a folder.

I am unsure how to solve this without creating the config file in the image, which defeats the purpose of the relevant check in the source

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions