Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- docker create --name blog
- --net bridge
- -e WORDPRESS_DB_HOST=192.168.170.11
- -e WORDPRESS_DB_USER=USER
- -e WORDPRESS_DB_PASSWORD=PASSWORD
- -e WORDPRESS_DB_NAME=wordpress
- -v /var/www/wordpress:/var/www/html
- -p 8000:80
- wordpress
- root@server:~/docker# curl -v http://localhost:8000
- * Rebuilt URL to: http://localhost:8000/
- * Trying ::1...
- * TCP_NODELAY set
- * Connected to localhost (::1) port 8000 (#0)
- > GET / HTTP/1.1
- > Host: localhost:8000
- > User-Agent: curl/7.52.1
- > Accept: */*
- >
- < HTTP/1.1 301 Moved Permanently
- < Date: Mon, 12 Feb 2018 20:08:48 GMT
- < Server: Apache/2.4.25 (Debian)
- < X-Powered-By: PHP/7.2.1
- < Set-Cookie: PHPSESSID=b03c4c1ba164bef366c49e1b1b5abc1c; path=/
- < Expires: Thu, 19 Nov 1981 08:52:00 GMT
- < Cache-Control: no-store, no-cache, must-revalidate
- < Pragma: no-cache
- < Set-Cookie: PHPSESSID=7293f22e5c860504a429b070d0ad21e4; path=/
- < Location: http://localhost/
- < Content-Length: 0
- < Content-Type: text/html; charset=UTF-8
- <
- * Curl_http_done: called premature == 0
- * Connection #0 to host localhost left intact
Add Comment
Please, Sign In to add comment