At the root folder where there is Dockerfile
docker build -t linkedin-learning-downloader . |
cd to linkedin-learning-downloader
docker run -ti -v $(pwd):/usr/src/app --rm linkedin-learning-downloader python linkedin_learning.py |
At the root folder where there is Dockerfile
docker build -t linkedin-learning-downloader . |
cd to linkedin-learning-downloader
docker run -ti -v $(pwd):/usr/src/app --rm linkedin-learning-downloader python linkedin_learning.py |
Docker clean up based on ancestor tag
docker ps -a -q --filter ancestor=azurebot/qna |
then docker
rm the containers
When put at the root of my Windows user folder C:\Users\[my username]\Dockerfile
it will fail to find context of related files required in the build
COPY failed: stat /mnt/sda1/var/lib/docker/tmp/docker-builder746762051/nodejs/package.json: no such file or directory |
Hence, in separate sub-directory:
<docker Windows User root> | nodejs (dir) |___ Dockerfile .dockerignore resources (dir) |____packages.json serverhello.js |
COPY success during build:
cd nodejs docker build -t bandono/simplenodeweb . |
Instead of -d
that exited with code 126 the whole time, run the serverhello.js
using:
$ docker run -p 8286:8080 bandono/simplenodeweb node serverhello.js Running on http://0.0.0.0:8080 |
References (which not working at first running with -d
):
FROM python:2.7 RUN pip install --no-cache-dir pytest |