docker run --rm -it -w="/usr/src/app" -v $PWD/application:/usr/src/app:z --user $(id -u):$(id -g) node bash
Add ports as needed, example:
docker run --rm -it -w="/usr/src/app" -p 8080:8080 -p 3000:3000 -v $PWD/application:/usr/src/app:z --user $(id -u):$(id -g) node bash
docker run --rm -it -w="/usr/src/app" -p 4200:4200 -v $PWD/application:/usr/src/app:z --user $(id -u):$(id -g) node bash
then create a new project inside the docker terminal
npx @angular/cli init
To serve your app, use --host=0.0.0.0. A good way of doing that is updating the package.json scrips sections, such as:
"scripts": {
"ng": "ng",
"start": "ng serve --host 0.0.0.0",
then, inside the docker container, run npm start
Open the browser at localhost:4200 and you should be good to go.