Hello,
I’m having problems with that particular lesson: Using Docker virtual environment. I already have docker installed in my machine (Win 10 pro 64) and when I run the command I get this response in the terminal:
$ bash run-dev-env.sh
"docker build" requires exactly 1 argument.
See 'docker build --help'.
Usage: docker build [OPTIONS] PATH | URL | -
Build an image from a Dockerfile
This is the file:
set -euo pipefail
DOCKER_IMAGE=printbay-dev
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if ! [[ $(docker images -q ${DOCKER_IMAGE}:latest) ]]; then
docker build --tag=${DOCKER_IMAGE}:latest ${SCRIPT_DIR}
fi
docker run --rm -it -v ${SCRIPT_DIR}:/workdir --workdir=/workdir --name=${DOCKER_IMAGE} \
-p 8050:8050 \
-p 8060:8060 \
-p 8070:8070 \
-p 8080:8080 \
-p 27017:27018 \
-p 35729:35729 \
${DOCKER_IMAGE}
As an alternative can I just run npm install
in my folder and do everything from the folder and not the docker machine? I understand the convenience of using Docker, but right now is not helping me at all and is actually holding me back in progressing with the course.
Thanks,
Rodrigo.