Guest User

Untitled

a guest
Feb 13th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. docker create --name blog
  4. --net bridge
  5. -e WORDPRESS_DB_HOST=192.168.170.11
  6. -e WORDPRESS_DB_USER=USER
  7. -e WORDPRESS_DB_PASSWORD=PASSWORD
  8. -e WORDPRESS_DB_NAME=wordpress
  9. -v /var/www/wordpress:/var/www/html
  10. -p 8000:80
  11. wordpress
  12.  
  13. root@server:~/docker# curl -v http://localhost:8000
  14. * Rebuilt URL to: http://localhost:8000/
  15. * Trying ::1...
  16. * TCP_NODELAY set
  17. * Connected to localhost (::1) port 8000 (#0)
  18. > GET / HTTP/1.1
  19. > Host: localhost:8000
  20. > User-Agent: curl/7.52.1
  21. > Accept: */*
  22. >
  23. < HTTP/1.1 301 Moved Permanently
  24. < Date: Mon, 12 Feb 2018 20:08:48 GMT
  25. < Server: Apache/2.4.25 (Debian)
  26. < X-Powered-By: PHP/7.2.1
  27. < Set-Cookie: PHPSESSID=b03c4c1ba164bef366c49e1b1b5abc1c; path=/
  28. < Expires: Thu, 19 Nov 1981 08:52:00 GMT
  29. < Cache-Control: no-store, no-cache, must-revalidate
  30. < Pragma: no-cache
  31. < Set-Cookie: PHPSESSID=7293f22e5c860504a429b070d0ad21e4; path=/
  32. < Location: http://localhost/
  33. < Content-Length: 0
  34. < Content-Type: text/html; charset=UTF-8
  35. <
  36. * Curl_http_done: called premature == 0
  37. * Connection #0 to host localhost left intact
Add Comment
Please, Sign In to add comment