Before the docker CLI sends the context to the docker daemon, it looks for a file named .dockerignore in the root directory of the context. If this file exists, the CLI modifies the context to exclude files and directories that match patterns in it. (In my case the reduction is 80 - 90% of bytes).
_env
.git
node_modules
deploy
build
.git
Docker Documentation about .dockerignore
docker stop $(docker ps -a -q);
docker rm $(docker ps -a -q);
docker rmi $(docker images -q);
alias dps="docker ps"
alias dip="docker inspect --format '{{ .NetworkSettings.IPAddress }}'"
dst() { docker stop $(docker ps -a -q); }
drm() { docker rm $(docker ps -a -q); }
dri() { docker rmi $(docker images -q); }
Should pass the name, e.g.: dlog container_1
alias dlog="docker logs $1"
Should pass the name, e.g.: dlogf container_1
alias dlogf="docker logs -f $1"
Should pass the name, e.g.: dsh container_1
dsh() { docker exec -it $(docker ps -aqf "name=$1") sh; }
Should pass the name, e.g.: dbash container_1
dbash() { docker exec -it $(docker ps -aqf "name=$1") bash; }
export DOCKER_CLIENT_TIMEOUT=120
export COMPOSE_HTTP_TIMEOUT=120
Source: docker/compose#3927