Create an Ubuntu Docker image - blitterated/docker-dev-env GitHub Wiki
cat << EOF > bash_profile
# load .bashrc by default
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
EOF
cat << EOF > bashrc
export PAGER=less
EOF
See Setup man pages in a minimized Ubuntu container for the origin of provision.sh
cat <<"EOF" > Dockerfile
FROM ubuntu
MAINTAINER blitterated [email protected]
COPY bash_profile /root/.bash_profile
COPY bashrc /root/.bashrc
COPY provision.sh /root/provision.sh
RUN /root/provision.sh
EOF
docker build -t dde .
docker run -it --rm --init dde /bin/bash