Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker-startup.bat fails to run #18

Open
patrickml opened this issue Dec 14, 2020 · 1 comment
Open

Docker-startup.bat fails to run #18

patrickml opened this issue Dec 14, 2020 · 1 comment

Comments

@patrickml
Copy link

patrickml commented Dec 14, 2020

When attempting to run Docker-Startup.bat the following error occurs

C:\**\OSCAL-GUI-master\OSCAL-GUI-master>docker run -p 80:8080 -v "$PWD"/webroot:/var/www/html trafex/alpine-nginx-php7
docker: Error response from daemon: create $PWD/webroot: "$PWD/webroot" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path.
See 'docker run **--help'.**

I believe this is simply because $PWD is not being interpreted by the windows command line, possibly change this to support windows shell or change the extension from .bat to .sh

@patrickml
Copy link
Author

patrickml commented Dec 14, 2020

Here is a docker-compose file that works

version: '3.7'

services:
  web:
    container_name: oscal
    image: trafex/alpine-nginx-php7
    volumes:
      - ./webroot/:/var/www/html
    ports:
      - 80:8080

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant