Skip to content

Instantly share code, notes, and snippets.

@abtris
Last active December 28, 2015 19:09
Show Gist options
  • Save abtris/7548643 to your computer and use it in GitHub Desktop.
Save abtris/7548643 to your computer and use it in GitHub Desktop.
Docker Demo
FROM ubuntu:latest
MAINTAINER Ladislav Prskavec <ladislav@prskavec.net>
RUN apt-get update
RUN apt-get -y upgrade
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install curl apache2 libapache2-mod-php5 vim-tiny
RUN chown -R www-data:www-data /var/www/
EXPOSE 80
EXPOSE 22
CMD ["/bin/bash"]
  1. vagrant up
  2. vagrant ssh
  3. docker version
  4. docker run ubuntu /bin/echo hello world
  5. docker images
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment