Skip to content

Instantly share code, notes, and snippets.

@asiletto
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asiletto/e1339ed94cf1e5bb2ed1 to your computer and use it in GitHub Desktop.
Save asiletto/e1339ed94cf1e5bb2ed1 to your computer and use it in GitHub Desktop.
docker hello world - install and run an apache2
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