Wordpress with docker-compose
Page content
Under construction!!
Error
https://docs.docker.com/compose/wordpress/#define-the-project 에 있는 에제대로 docker-compose.yaml 파일을 만든 후 도전~~
근데 실패
cychong:~/work/my_wordpress cychong$ docker-compose up -d
Pulling db (mysql:5.7)...
Traceback (most recent call last):
File "docker-compose", line 3, in <module>
File "compose/cli/main.py", line 68, in main
File "compose/cli/main.py", line 118, in perform_command
File "compose/cli/main.py", line 928, in up
File "compose/project.py", line 427, in up
File "compose/service.py", line 311, in ensure_image_exists
File "compose/service.py", line 1016, in pull
File "site-packages/docker/api/image.py", line 358, in pull
File "site-packages/docker/auth.py", line 50, in get_config_header
File "site-packages/docker/auth.py", line 97, in resolve_authconfig
File "site-packages/docker/auth.py", line 142, in _resolve_authconfig_credstore
docker.errors.DockerException: Credentials store error: StoreError('Credentials store docker-credential-osxkeychain exited with "User interaction is not allowed.".',)
Failed to execute script docker-compose
저 에러가 뭘까 하고 Googling을 해 보니 "Credentials store docker-credential-osxkeychain exited with "User interaction is not allowed"
이런 해결책이 나왔다.
https://github.com/docker/docker-credential-helpers/issues/82
If I click on the docker icon in the menu bar -> preferences -> and I untick “Securely store docker logins in macOS keychain” this problem goes away.
시키는 대로 docker 옵션 수정 후 다시 실행했더니 이제 에러는 발생하지 않는다.
Error is gone
cychong:~/work/my_wordpress cychong$ docker-compose up -d
Pulling db (mysql:5.7)...
5.7: Pulling from library/mysql
ad74af05f5a2: Already exists
0639788facc8: Pull complete
de70fa77eb2b: Pull complete
724179e94999: Pull complete
50c77fb16ba6: Pull complete
d51f459239fb: Pull complete
937bbdd4305a: Pull complete
35369f9634e1: Pull complete
f6016aab25f1: Pull complete
5f1901e920da: Pull complete
fdf808213c5b: Pull complete
Digest: sha256:96edf37370df96d2a4ee1715cc5c7820a0ec6286551a927981ed50f0273d9b43
Status: Downloaded newer image for mysql:5.7
Creating mywordpress_db_1 ...
Creating mywordpress_db_1 ... done
Creating mywordpress_wordpress_1 ...
Creating mywordpress_wordpress_1 ... done
마지막에 mywordpress_db_1 이란 말이 맘에 안들지만 그래도 일단 웹브라우저에서 접속을 해보는데 안되네….