Table of Contents
Learning - Docker
Just to refresh my Docker knowledge.
Logs
docker logs -f --tail 100 nginx
Network
docker network create mongo-network
mongo and mongo-express
docker-compose
docker-compose -f docker-compose.yaml up
docker-compose -f docker-compose.yaml down
Dockerfile
FROM nginx:1.10.2-alpine
MAINTAINER my@example.com
ENV
RUN
COPY ./nginx.conf /etc/nginx/nginx.conf
CMD
build
docker build -t my-app:1.0 .
AWS ECR
Fully-managed Docker container registry
Default registry
docker pull mongo:4.2
same as
docker pull docker.io/library/mongo:4.2
Tag
docker tag my-app:latest <reg>/my-app:latest
Push
docker push <reg>/my-app:latest
Volume
c:\programData\docker\volumes
/var/lib/docker/volumes
In Mac
# screen ~/Library/Containers/com.docker.docker/Data/com.docker.amd64-linux/tty
# ls /var/lib/docker/volumes