Skip to content

Instantly share code, notes, and snippets.

@warpr

warpr/docker.txt Secret

Created May 12, 2014
Embed
What would you like to do?
16:52 warp@18-volt:~/code/server-fault-594281$ cat Dockerfile
FROM ubuntu:13.10
RUN apt-get update && apt-get -y install apache2
ADD site /var/www
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
EXPOSE 80
ENTRYPOINT ["/usr/sbin/apache2ctl"]
CMD ["-D", "FOREGROUND"]
16:52 warp@18-volt:~/code/server-fault-594281$ docker build --tag="bashtest" .
Uploading context 566.3 kB
Uploading context
Step 0 : FROM ubuntu:13.10
---> 5e019ab7bf6d
Step 1 : RUN apt-get update && apt-get -y install apache2
---> Using cache
---> 5bbb0f0f87cd
Step 2 : ADD site /var/www
---> f505cbe31152
Step 3 : ENV APACHE_RUN_USER www-data
---> Running in 67e432353b7b
---> 6ddc697ddc96
Step 4 : ENV APACHE_RUN_GROUP www-data
---> Running in 329599e2e2f5
---> 2d49efc9d78b
Step 5 : ENV APACHE_LOG_DIR /var/log/apache2
---> Running in fb835f8554b8
---> 419ad52f12a6
Step 6 : EXPOSE 80
---> Running in c7d974839ffc
---> 75323e7c0d12
Step 7 : ENTRYPOINT ["/usr/sbin/apache2ctl"]
---> Running in 04cf350072b6
---> 25e3acadcfa7
Step 8 : CMD ["-D", "FOREGROUND"]
---> Running in f3e637a4d14d
---> ed79232c65bf
Successfully built ed79232c65bf
Removing intermediate container 06a47ee1d478
Removing intermediate container 67e432353b7b
Removing intermediate container 329599e2e2f5
Removing intermediate container fb835f8554b8
Removing intermediate container c7d974839ffc
Removing intermediate container 04cf350072b6
Removing intermediate container f3e637a4d14d
16:52 warp@18-volt:~/code/server-fault-594281$ docker run -it bashtest /bin/bash
Usage: /usr/sbin/apache2 [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|graceful-stop|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X]
Options:
-D name : define a name for use in <IfDefine name> directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C "directive" : process directive before reading config files
-c "directive" : process directive after reading config files
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings
-h : list available command line options (this page)
-l : list compiled in modules
-L : list available configuration directives
-t -D DUMP_VHOSTS : show parsed vhost settings
-t -D DUMP_RUN_CFG : show parsed run settings
-S : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
-t -D DUMP_MODULES : show all loaded modules
-M : a synonym for -t -D DUMP_MODULES
-t : run syntax check for config files
-T : start without DocumentRoot(s) check
-X : debug mode (only one worker, do not detach)
Action '/bin/bash' failed.
The Apache error log may have more information.
16:53 warp@18-volt:~/code/server-fault-594281$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment