We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63cccc0 commit b153bb3Copy full SHA for b153bb3
1 file changed
Dockerfile
@@ -28,8 +28,15 @@ RUN apt-get install -y mongodb-10gen || echo "upstart error expected"
28
# MySQL
29
RUN apt-get install -y mysql-server || echo "need to run mysql --configure"
30
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
+USER persistent
+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
40
#
41
# # switch to the persistent user in the image and its home directory
42
# su persistent
0 commit comments