0
我使用WordPress和Docker容器。問題是我更新了wp-config.php文件,但一切看起來都一樣。 我有這樣的事情:Wordpress wp-config.php不會在Dockers中更新?
CONTAINER ID IMAGE NAMES
b2711d4b72a1 phpmyadmin/phpmyadmin website_phpmyadmin_1
8a89ee46d673 wordpress:4.7.5 website_wordpress_1
2a167667f705 mysql:5.7 website_db_1
我的搬運工,compose.yaml看起來是這樣的:
version: '2'
services:
wordpress:
depends_on:
- db
image: wordpress:4.7.5
restart: always
volumes:
- ./wp-content:/var/www/html/wp-content
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_PASSWORD: p4ssw0rd!
ports:
- 80:80
- 443:443
networks:
- back
db:
image: mysql:5.7
restart: always
volumes:
- db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: p4ssw0rd!
networks:
- back
phpmyadmin:
depends_on:
- db
image: phpmyadmin/phpmyadmin
restart: always
ports:
- 8080:80
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: p4ssw0rd!
networks:
- back
networks:
back:
volumes:
db_data:
我已經跑碼頭工人,組成了起來,構建和下降,但一切是一樣的。
它適用於wp-content,不適用於wp-config.php:'sed:無法重命名./sedhxG4ZS:設備或資源繁忙。它看起來類似於https://stackoverflow.com/questions/41032744/unable-to-edit-etc-resolv-conf-in-docker-container –