wp command gives "docker: invalid reference format." #25

Open
opened 2021-05-20 09:28:10 +00:00 by decentral1se · 1 comment
Owner
➜  wordpress (e5c41fa) ✔ abra -d app example.com wp "search-replace www.example.org www.example.com --dry-run --all-tables"
DEBUG: ENV_FILE=/home/decentral1se/.abra/servers/example.org/example.org.env                               
DEBUG: STACK_NAME=example_org
DEBUG: Loaded variables from /home/decentral1se/.abra/servers/example.org/example.org.env
INFO: DOCKER_CONTEXT=example.org
DEBUG: No apps.json update needed
DEBUG: Loading ./abra.sh
DEBUG: Loading /home/decentral1se/.abra/apps/wordpress/abra.sh
DEBUG: Using Container ID 21288b52290e
9e5b2ddc3ea3
835afa953503
39951b96b11f
8f6247270b5c
0ff36cc9c924
7920eba2a548
WARNING: Slowly looking up MySQL password...
docker: invalid reference format.
See 'docker run --help'.
``` ➜ wordpress (e5c41fa) ✔ abra -d app example.com wp "search-replace www.example.org www.example.com --dry-run --all-tables" DEBUG: ENV_FILE=/home/decentral1se/.abra/servers/example.org/example.org.env DEBUG: STACK_NAME=example_org DEBUG: Loaded variables from /home/decentral1se/.abra/servers/example.org/example.org.env INFO: DOCKER_CONTEXT=example.org DEBUG: No apps.json update needed DEBUG: Loading ./abra.sh DEBUG: Loading /home/decentral1se/.abra/apps/wordpress/abra.sh DEBUG: Using Container ID 21288b52290e 9e5b2ddc3ea3 835afa953503 39951b96b11f 8f6247270b5c 0ff36cc9c924 7920eba2a548 WARNING: Slowly looking up MySQL password... docker: invalid reference format. See 'docker run --help'. ```
Author
Owner

Aha, I think it is because I am missing the WORDPRESS_CONFIG_EXTRA=${WORDPRESS_CONFIG_EXTRA} which is commented out by default? I was also thinking, the ps -f logic might want to use a ^${STACK_NAME}_app to get an exact match? When I run with -d, I see only one container returned when using this caret but otherwise, multiple. Not sure. Anyway, running this manually for now.

Aha, I think it is because I am missing the `WORDPRESS_CONFIG_EXTRA=${WORDPRESS_CONFIG_EXTRA}` which is commented out by default? I was also thinking, the `ps -f` logic might want to use a `^${STACK_NAME}_app` to get an exact match? When I run with `-d`, I see only one container returned when using this caret but otherwise, multiple. Not sure. Anyway, running this manually for now.
This repo is archived. You cannot comment on issues.
No Label
No Milestone
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/wordpress#25
No description provided.