Public | Automated Build

Last pushed: 2 years ago
Short Description
Full Description

Docker container to run simple Symfony applications.

Docker daemon (for Linux based OS)

So if you are using Windows or Mac, you cannot enjoy this luxury. Move on and try to provision docker host with docker-machine in the below section.

Make sure you are running kernel >= 3.10

$ uname -r

Install docker engine (Example below for ubuntu 15.10). Refer to full documentation here

$ sudo apt-key adv --keyserver hkp:// --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

$ echo "deb ubuntu-wily main" > /etc/apt/sources.list.d/docker.list

$ sudo apt-get update && sudo apt-get install linux-image-extra-$(uname -r)

Verify installation

$ docker info

Provisoning docker host (for Non-Linux or remote docker instance)

Provision docker host machine locally an instance called dev

$ docker-machine create --driver virtualbox dev

Or provision it using AWS for production server. See list of supported driver

$ docker-machine create --driver amazonec2 --amazonec2-access-key AKI******* --amazonec2-secret-key 8T93C********* --amazonec2-vpc-id vpc-****** production

Pointing docker client to the dev instance

$ eval "$(docker-machine env dev)"


Build image and deploy to docker host

$ docker build -t haphan/sf2-app-server .
$ docker run -itP -v $PWD:/srv -p 80:80 haphan/sf2-app-server


Coming soon

Docker Pull Command

Comments (0)