Last active
August 29, 2015 14:16
-
-
Save asiletto/e1339ed94cf1e5bb2ed1 to your computer and use it in GitHub Desktop.
docker hello world - install and run an apache2
This file contains 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
root@ubuntu:~# docker run -t -i ubuntu /bin/bash | |
root@e7ec762cee11:/# apt-get update && apt-get install apache2 | |
root@e7ec762cee11:/# exit | |
root@ubuntu:~# docker commit e7ec762cee11 asiletto/test | |
root@ubuntu:~# docker run --name ap1 -d -p 80:80 asiletto/test /usr/sbin/apache2ctl -D FOREGROUND | |
root@ubuntu:~# links http://localhost/ | |
chrome.exe http://192.168.1.112/ | |
root@ubuntu:~# docker push asiletto/test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment