install debian packages

RUN apt-get update && \
    apt-get install --no-install-recommends -y curl && \
    rm -rf /var/lib/apt/lists/*

download URL with curl

RUN mkdir -p /dl && \
    cd /dl && \
    curl -SsfLO

this could maybe be done via just ADD

touch Gemfile Gemfile.lock

touch -m -t 200601021504.05 Gemfile Gemfile.lock bundle_config

detach container

C-p C-q


exited containers

for id in $(docker ps -f status=exited -q); do docker rm $id; done

images by pattern

for id in $(docker images | grep ${PATTERN} | awk '{ print $3 }'); do docker rmi $id; done

new system commands

docker system df
docker system prune


name="docker-compose-`uname -s`-`uname -m`"
curl -SsfL${name}

docker api

curl -ks | jq '.'
curl -ks | jq '.'
curl -ks | jq '.'