Docker tips and tricks
Here are some of my notes about some tips & tricks which I took during the my learning process.
To run and deploy a Docker app
docker-machine ip defaultto get the docker-machine’s exposed IP address.
- Before pushing an image, tag it using
docker tag my_image $DOCKER_ID_USER/my_image.
If you get this error in Docker Quickstart Console:
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.30/containers/json: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
docker-machine regenerate-certs default
docker-machine env default
eval $("C:\ProgramData\chocolatey\lib\docker-machine\bin\docker-machine.exe" env default)