Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
README.md

README.md

On Demand Dev with Docker and WordPress

Docker + WordPress Workshop

Preparations

  • Install Docker
  • Install Docker Compose
  • Clone this repo
  • If running, shut down the following: MAMP, WAMP, VVV, etc.
  • Check to see if Docker is running with command docker
  • Check to see if Docker is running with command docker-compose
$ danielolson : ~/dev/wceu-workshop
$ docker
  
  Usage:	docker COMMAND
  
  A self-sufficient runtime for containers
$ danielolson : ~/dev/wceu-workshop
$ docker-compose
  
  Define and run multi-container applications with Docker.

  Usage:
    docker-compose [-f <arg>...] [options] [COMMAND] [ARGS...]
    docker-compose -h|--help

Workshop ToC

  1. Docker: Hello World
  2. Docker Compose: Hello World
  3. Docker Compose: WordPress

Quick Tips

Useful Docker Commands

Commands Description
docker-compose ps List Containers
docker-compose up -d Create and start containers with detached flag
docker-compose stop Stop running containers
docker-compose rmi Remove container images
docker-compose restart Restart services
docker-compose kill Force stop service containers
docker-compose up -d --force-recreate Force recreate containers
docker stop $(docker ps -a -q) Stop all containers
docker rm -f $(docker ps -a -q) Remove all containers
docker rmi -f $(docker images -q) Delete all images
docker system prune --all Remove unused images
docker volume rm $(docker volume ls -qf dangling=true) Remove volumes

Cleanup

Commands Description
docker stop $(docker ps -a -q) Stop all containers
docker rm -f $(docker ps -a -q) Remove all containers
docker volume rm $(docker volume ls -qf dangling=true) Remove volumes
You can’t perform that action at this time.