Skip to content

Instantly share code, notes, and snippets.

@d11wtq
Created February 9, 2014 04:48
Show Gist options
  • Save d11wtq/8894449 to your computer and use it in GitHub Desktop.
Save d11wtq/8894449 to your computer and use it in GitHub Desktop.
FROM ubuntu
RUN useradd -m -s /bin/bash test
USER test
ENV HOME /home/test
WORKDIR /home/test
RUN echo date >> ~/.bashrc
@d11wtq
Copy link
Author

d11wtq commented Feb 9, 2014

Build with docker build -rm -t test ., run with docker run -rm -t -i test bash, you should see the date output when bash starts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment