Set up Docker, it is described here: https://www.docker.com/get-docker.
Do NOT use Docker Toolbox.
After installed Docker, you launch it an login (if you have not an account yet, this is a good opportunity to create one)
Then get in the Docker settings -> Deamon -> (change configuration option von Basic to Advanced) and add the line "storage-driver": "aufs"
it should look like this:
{
"registry-mirrors": [],
"insecure-registries": [],
"debug": true,
"experimental": false,
"storage-driver": "aufs"
}
You probably need to enable virtualization in you BIOS. For troubleshooting, maybe try the methods listed on this site:
AND YOURE DONE! Pretty fast, wasn't it?
for building use:
docker-compose up
For installing node dependencies you use:
docker-compose run --rm app /bin/bash
for entereing the console in the docker container. There you can install packages by running
npm install --save <your-package>
- When a Dockerfile is build, the images are partially stored an reused. This could lead to some problems. A intuitive way is to rebuild the whole image. For this execute:
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
you can check if all images are deleted by running docker ps -a
which lists all images.
- the next step ist to restart docker by right-klicking the docker icon in your taskbar and smash restart.