Created
February 9, 2014 04:48
-
-
Save d11wtq/8894449 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
RUN useradd -m -s /bin/bash test | |
USER test | |
ENV HOME /home/test | |
WORKDIR /home/test | |
RUN echo date >> ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Build with
docker build -rm -t test .
, run withdocker run -rm -t -i test bash
, you should see the date output when bash starts.