Skip to content

Commit b153bb3

Browse files
committed
improve Dockerfile documentation
1 parent 63cccc0 commit b153bb3

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,15 @@ RUN apt-get install -y mongodb-10gen || echo "upstart error expected"
2828
# MySQL
2929
RUN apt-get install -y mysql-server || echo "need to run mysql --configure"
3030

31-
# # when the building step is done, run the given <image>, mounting this directory inside
32-
# sudo docker run -name persistent -v `pwd`:/home/persistent -t -i <image> /bin/bash
31+
USER persistent
32+
ENV HOME /home/persistent
33+
34+
# build the image
35+
#
36+
# sudo docker build -t persistent .
37+
#
38+
# run the image with the directory mounted
39+
# sudo docker run --name persistent -v `pwd`:/home/persistent -t -i persistent /bin/bash
3340
#
3441
# # switch to the persistent user in the image and its home directory
3542
# su persistent

0 commit comments

Comments
 (0)