Wordpress not running on Docker port 8000Find (and kill) process locking port 3000 on MacHow is Docker different from a virtual machine?Should I use Vagrant or Docker for creating an isolated environment?How to get a Docker container's IP address from the host?How to remove old Docker containersCopying files from host to Docker containerKubernetes equivalent of env-file in DockerDocker link container as build argumentDocker Flyway MySQL 8 : Client does not support authentication protocol requested by server. Consider upgrading MariaDB clientDocker - WordPress - Localhost ERR_EMPTY_RESPONSE
Do I have to know the General Relativity theory to understand the concept of inertial frame?
Storage of electrolytic capacitors - how long?
Identifying "long and narrow" polygons in with PostGIS
Do you waste sorcery points if you try to apply metamagic to a spell from a scroll but fail to cast it?
Why is participating in the European Parliamentary elections used as a threat?
Why would five hundred and five be same as one?
I'm just a whisper. Who am I?
Make a Bowl of Alphabet Soup
Should I warn a new PhD Student?
Has the laser at Magurele, Romania reached a tenth of the Sun's power?
How can I, as DM, avoid the Conga Line of Death occurring when implementing some form of flanking rule?
Is there anyway, I can have two passwords for my wi-fi
Why is the sun approximated as a black body at ~ 5800 K?
Did I make a mistake by ccing email to boss to others?
Possible Eco thriller, man invents a device to remove rain from glass
Why is the principal energy of an electron lower for excited electrons in a higher energy state?
Does Doodling or Improvising on the Piano Have Any Benefits?
Proving an identity involving cross products and coplanar vectors
How to make money from a browser who sees 5 seconds into the future of any web page?
Why can't the Brexit deadlock in the UK parliament be solved with a plurality vote?
If the only attacker is removed from combat, is a creature still counted as having attacked this turn?
In One Punch Man, is King actually weak?
Giving feedback to someone without sounding prejudiced
Why does a 97 / 92 key piano exist by Bösendorfer?
Wordpress not running on Docker port 8000
Find (and kill) process locking port 3000 on MacHow is Docker different from a virtual machine?Should I use Vagrant or Docker for creating an isolated environment?How to get a Docker container's IP address from the host?How to remove old Docker containersCopying files from host to Docker containerKubernetes equivalent of env-file in DockerDocker link container as build argumentDocker Flyway MySQL 8 : Client does not support authentication protocol requested by server. Consider upgrading MariaDB clientDocker - WordPress - Localhost ERR_EMPTY_RESPONSE
I'm trying to set up wordpress with Docker Desktop on Mac. I followed this guide: https://docs.docker.com/compose/wordpress/
When I run docker-compose up -d, it tells me db & wordpress are up-to-date. But, visiting localhost:8000 results in this error: This page isn’t working localhost didn’t send any data. ERR_EMPTY_RESPONSE . I also tried 127.0.0.1:8000 - same result.
Again, curl localhost:8000 just gives me: (52) Empty reply from server
I'm also using Local by Flywheel on my machine. Could that cause a conflict perhaps?
My docker-compose.yml:
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
wordpress:
depends_on:
- db
image: wordpress:latest
ports:
- "8000:80"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
volumes:
db_data:
wordpress macos docker docker-compose docker-desktop
|
show 2 more comments
I'm trying to set up wordpress with Docker Desktop on Mac. I followed this guide: https://docs.docker.com/compose/wordpress/
When I run docker-compose up -d, it tells me db & wordpress are up-to-date. But, visiting localhost:8000 results in this error: This page isn’t working localhost didn’t send any data. ERR_EMPTY_RESPONSE . I also tried 127.0.0.1:8000 - same result.
Again, curl localhost:8000 just gives me: (52) Empty reply from server
I'm also using Local by Flywheel on my machine. Could that cause a conflict perhaps?
My docker-compose.yml:
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
wordpress:
depends_on:
- db
image: wordpress:latest
ports:
- "8000:80"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
volumes:
db_data:
wordpress macos docker docker-compose docker-desktop
Please check if the port is open withnetstat -plunt | grep 8000, I am not a Mac user I don't know if you havenetstatbut I hope so :)
– Hernan Garcia
Mar 7 at 3:21
@HernanGarcia netstat is there... but-pluntseems isn't the right syntax for Mac. Will need to dig that up.
– geochanto
Mar 7 at 3:37
Join this chat chat.stackoverflow.com/rooms/189566/…
– Hernan Garcia
Mar 7 at 3:45
so I didsudo lsof -iTCP -sTCP:LISTEN -n -P. This gives me a list of all the ports being listened to. I see a line like this:com.docke 646 username 18u IPv4 0x266159bcd6f45489 0t0 TCP *:8000 (LISTEN)and this:com.docke 646 username 20u IPv6 0x266159bce9382b09 0t0 TCP [::1]:8000 (LISTEN)
– geochanto
Mar 7 at 3:45
I'm in the chat @HernanGarcia
– geochanto
Mar 7 at 3:48
|
show 2 more comments
I'm trying to set up wordpress with Docker Desktop on Mac. I followed this guide: https://docs.docker.com/compose/wordpress/
When I run docker-compose up -d, it tells me db & wordpress are up-to-date. But, visiting localhost:8000 results in this error: This page isn’t working localhost didn’t send any data. ERR_EMPTY_RESPONSE . I also tried 127.0.0.1:8000 - same result.
Again, curl localhost:8000 just gives me: (52) Empty reply from server
I'm also using Local by Flywheel on my machine. Could that cause a conflict perhaps?
My docker-compose.yml:
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
wordpress:
depends_on:
- db
image: wordpress:latest
ports:
- "8000:80"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
volumes:
db_data:
wordpress macos docker docker-compose docker-desktop
I'm trying to set up wordpress with Docker Desktop on Mac. I followed this guide: https://docs.docker.com/compose/wordpress/
When I run docker-compose up -d, it tells me db & wordpress are up-to-date. But, visiting localhost:8000 results in this error: This page isn’t working localhost didn’t send any data. ERR_EMPTY_RESPONSE . I also tried 127.0.0.1:8000 - same result.
Again, curl localhost:8000 just gives me: (52) Empty reply from server
I'm also using Local by Flywheel on my machine. Could that cause a conflict perhaps?
My docker-compose.yml:
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
wordpress:
depends_on:
- db
image: wordpress:latest
ports:
- "8000:80"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
volumes:
db_data:
wordpress macos docker docker-compose docker-desktop
wordpress macos docker docker-compose docker-desktop
edited Mar 7 at 3:57
geochanto
asked Mar 7 at 2:51
geochantogeochanto
473226
473226
Please check if the port is open withnetstat -plunt | grep 8000, I am not a Mac user I don't know if you havenetstatbut I hope so :)
– Hernan Garcia
Mar 7 at 3:21
@HernanGarcia netstat is there... but-pluntseems isn't the right syntax for Mac. Will need to dig that up.
– geochanto
Mar 7 at 3:37
Join this chat chat.stackoverflow.com/rooms/189566/…
– Hernan Garcia
Mar 7 at 3:45
so I didsudo lsof -iTCP -sTCP:LISTEN -n -P. This gives me a list of all the ports being listened to. I see a line like this:com.docke 646 username 18u IPv4 0x266159bcd6f45489 0t0 TCP *:8000 (LISTEN)and this:com.docke 646 username 20u IPv6 0x266159bce9382b09 0t0 TCP [::1]:8000 (LISTEN)
– geochanto
Mar 7 at 3:45
I'm in the chat @HernanGarcia
– geochanto
Mar 7 at 3:48
|
show 2 more comments
Please check if the port is open withnetstat -plunt | grep 8000, I am not a Mac user I don't know if you havenetstatbut I hope so :)
– Hernan Garcia
Mar 7 at 3:21
@HernanGarcia netstat is there... but-pluntseems isn't the right syntax for Mac. Will need to dig that up.
– geochanto
Mar 7 at 3:37
Join this chat chat.stackoverflow.com/rooms/189566/…
– Hernan Garcia
Mar 7 at 3:45
so I didsudo lsof -iTCP -sTCP:LISTEN -n -P. This gives me a list of all the ports being listened to. I see a line like this:com.docke 646 username 18u IPv4 0x266159bcd6f45489 0t0 TCP *:8000 (LISTEN)and this:com.docke 646 username 20u IPv6 0x266159bce9382b09 0t0 TCP [::1]:8000 (LISTEN)
– geochanto
Mar 7 at 3:45
I'm in the chat @HernanGarcia
– geochanto
Mar 7 at 3:48
Please check if the port is open with
netstat -plunt | grep 8000, I am not a Mac user I don't know if you have netstat but I hope so :)– Hernan Garcia
Mar 7 at 3:21
Please check if the port is open with
netstat -plunt | grep 8000, I am not a Mac user I don't know if you have netstat but I hope so :)– Hernan Garcia
Mar 7 at 3:21
@HernanGarcia netstat is there... but
-plunt seems isn't the right syntax for Mac. Will need to dig that up.– geochanto
Mar 7 at 3:37
@HernanGarcia netstat is there... but
-plunt seems isn't the right syntax for Mac. Will need to dig that up.– geochanto
Mar 7 at 3:37
Join this chat chat.stackoverflow.com/rooms/189566/…
– Hernan Garcia
Mar 7 at 3:45
Join this chat chat.stackoverflow.com/rooms/189566/…
– Hernan Garcia
Mar 7 at 3:45
so I did
sudo lsof -iTCP -sTCP:LISTEN -n -P. This gives me a list of all the ports being listened to. I see a line like this: com.docke 646 username 18u IPv4 0x266159bcd6f45489 0t0 TCP *:8000 (LISTEN) and this: com.docke 646 username 20u IPv6 0x266159bce9382b09 0t0 TCP [::1]:8000 (LISTEN)– geochanto
Mar 7 at 3:45
so I did
sudo lsof -iTCP -sTCP:LISTEN -n -P. This gives me a list of all the ports being listened to. I see a line like this: com.docke 646 username 18u IPv4 0x266159bcd6f45489 0t0 TCP *:8000 (LISTEN) and this: com.docke 646 username 20u IPv6 0x266159bce9382b09 0t0 TCP [::1]:8000 (LISTEN)– geochanto
Mar 7 at 3:45
I'm in the chat @HernanGarcia
– geochanto
Mar 7 at 3:48
I'm in the chat @HernanGarcia
– geochanto
Mar 7 at 3:48
|
show 2 more comments
1 Answer
1
active
oldest
votes
I solved it, but I don't know why it worked. I followed what someone had done here: https://forums.docker.com/t/wordpress-example-in-docker-compose-fails/30438/3
Basically I changed volume to db_data:/var/lib/mysql2, and also changed wordpress image to wordpress:php7.1. After running docker-compose up it worked.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55035309%2fwordpress-not-running-on-docker-port-8000%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I solved it, but I don't know why it worked. I followed what someone had done here: https://forums.docker.com/t/wordpress-example-in-docker-compose-fails/30438/3
Basically I changed volume to db_data:/var/lib/mysql2, and also changed wordpress image to wordpress:php7.1. After running docker-compose up it worked.
add a comment |
I solved it, but I don't know why it worked. I followed what someone had done here: https://forums.docker.com/t/wordpress-example-in-docker-compose-fails/30438/3
Basically I changed volume to db_data:/var/lib/mysql2, and also changed wordpress image to wordpress:php7.1. After running docker-compose up it worked.
add a comment |
I solved it, but I don't know why it worked. I followed what someone had done here: https://forums.docker.com/t/wordpress-example-in-docker-compose-fails/30438/3
Basically I changed volume to db_data:/var/lib/mysql2, and also changed wordpress image to wordpress:php7.1. After running docker-compose up it worked.
I solved it, but I don't know why it worked. I followed what someone had done here: https://forums.docker.com/t/wordpress-example-in-docker-compose-fails/30438/3
Basically I changed volume to db_data:/var/lib/mysql2, and also changed wordpress image to wordpress:php7.1. After running docker-compose up it worked.
answered Mar 8 at 0:55
geochantogeochanto
473226
473226
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55035309%2fwordpress-not-running-on-docker-port-8000%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Please check if the port is open with
netstat -plunt | grep 8000, I am not a Mac user I don't know if you havenetstatbut I hope so :)– Hernan Garcia
Mar 7 at 3:21
@HernanGarcia netstat is there... but
-pluntseems isn't the right syntax for Mac. Will need to dig that up.– geochanto
Mar 7 at 3:37
Join this chat chat.stackoverflow.com/rooms/189566/…
– Hernan Garcia
Mar 7 at 3:45
so I did
sudo lsof -iTCP -sTCP:LISTEN -n -P. This gives me a list of all the ports being listened to. I see a line like this:com.docke 646 username 18u IPv4 0x266159bcd6f45489 0t0 TCP *:8000 (LISTEN)and this:com.docke 646 username 20u IPv6 0x266159bce9382b09 0t0 TCP [::1]:8000 (LISTEN)– geochanto
Mar 7 at 3:45
I'm in the chat @HernanGarcia
– geochanto
Mar 7 at 3:48