ionic-docker icon indicating copy to clipboard operation
ionic-docker copied to clipboard

Docker run can't find ionic.config.json file

Open mavogel opened this issue 8 years ago • 2 comments

First of all thanks for the ionic2-boilerplate. Awesome project! The docker run command provided in the README do not work for me. Neither

$ pwd
/Users/mavogel/Development/angular/ionic2-boilerplate
$ docker run -ti --rm -p 8100:8100 -p 35729:35729 marcoturi/ionic
******************************************************
 Dependency warning - for the CLI to run correctly,
 it is highly recommended to install/upgrade the following:

 Please install your Cordova CLI to version  >=4.2.0 `npm install -g cordova`

******************************************************
Couldn't find ionic.config.json file. Are you in an Ionic project?

nor

$ docker run -ti --rm -p 8100:8100 -p 35729:35729 -v ~/Development/angular2/ionic2-boilerplate/:/myApp:rw marcoturi/ionic
...

complain about not being in an Ionic project, but I'm definetly in an Ionic project folder:

$ ionic info

Your system information:

Cordova CLI: 6.5.0
Ionic Framework Version: 2.0.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.0.0
ios-deploy version: 1.9.1
ios-sim version: 5.0.13
OS: OS X El Capitan
Node Version: v6.9.1
Xcode version: Xcode 8.2.1 Build version 8C1002

Did I miss something? Does this work for you? https://github.com/agileek/docker you used as inspiration doesn't have related issues. Checked it already

mavogel avatar Feb 12 '17 10:02 mavogel

The docker working directory is "Sources".

Changing -v ~/Development/angular2/ionic2-boilerplate/:/myApp:rw to -v ~/Development/angular2/ionic2-boilerplate/:/Sources:rw should work. Or alternatively, change the working directory using -w myApp

RobertYoung avatar Oct 01 '17 19:10 RobertYoung

still not working on windows 10

pengkobe avatar Dec 19 '18 11:12 pengkobe