Guest User

Untitled

a guest
Apr 24th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. docker run --name wordpress-db -e MYSQL_ROOT_PASSWORD='hello123!@#' -e MYSQL_USER=wordpress -e MYSQL_PASSWORD='hello123!@#' -e MYSQL_DATABASE=wordpress -d mysql
  2. read
  3. docker run --name wordpress --link wordpress-db:mysql -e WORDPRESS_DB_USER=wordpress -e WORDPRESS_DB_PASSWORD='hello123!@#' -e WORDPRESS_DB_NAME=wordpress -p 8082:80 -d wordpress
  4. read
  5. docker run --name wordpress-backup -v /root/dockers/outofboundsbrewing.com/backups:/backups --volumes-from=wordpress --link=wordpress-db:mysql -d aveltens/wordpress-backup
  6. read
  7. docker exec wordpress-backup restore 0
Advertisement
Add Comment
Please, Sign In to add comment