Last active
November 27, 2016 21:53
-
-
Save timezstyle/72e163e5dbda7512ebe7 to your computer and use it in GitHub Desktop.
Ubuntu 14.04 LTS install docker 1.10.1
This file contains hidden or 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
| # install docker | |
| apt-get update | |
| apt-get install -y --force-yes apt-transport-https ca-certificates | |
| apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
| # edit /etc/apt/sources.list.d/docker.list | |
| vi /etc/apt/sources.list.d/docker.list | |
| deb https://apt.dockerproject.org/repo ubuntu-trusty main | |
| apt-get update | |
| apt-get purge lxc-docker | |
| apt-cache policy docker-engine | |
| apt-get install -y --force-yes docker-engine | |
| # install docker-compose | |
| curl -L https://github.com/docker/compose/releases/download/1.6.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose | |
| chmod +x /usr/local/bin/docker-compose | |
| # install wordpress edit docker-compose.yml | |
| vi docker-compose.yml | |
| ## put this below | |
| wordpress: | |
| image: wordpress | |
| links: | |
| - db:mysql | |
| ports: | |
| - 8080:80 | |
| db: | |
| image: mariadb | |
| environment: | |
| MYSQL_ROOT_PASSWORD: example | |
| ## | |
| # start wordpress | |
| docker-compose up -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment