Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

WEAVE_DOCKER_ARGS cause "invalid reference format" error #3370

Closed
bklau opened this issue Aug 8, 2018 · 7 comments
Closed

WEAVE_DOCKER_ARGS cause "invalid reference format" error #3370

bklau opened this issue Aug 8, 2018 · 7 comments
Labels
Milestone

Comments

@bklau
Copy link

bklau commented Aug 8, 2018

Symptom:

When attempting to pass additional Docker run arguments to weave launch, got an error "invalid reference format".
Found in version : Weave version2.4.0

Steps to repro:

Just execute the code below to add a custom Docker label "com.abc.com.container.ignore"
WEAVE_DEBUG= WEAVE_DOCKER_ARGS="-l com.abc.com.container.ignore" weave launch
unable to create container: API error (500): invalid reference format

Note: When WEAVE_DOCKER_ARGS="", it works.

@bboreham
Copy link
Contributor

bboreham commented Aug 8, 2018

Hi, could you run WEAVE_DEBUG=true WEAVE_DOCKER_ARGS="-l com.abc.com.container.ignore" weave launch and post the full output please

@bklau
Copy link
Author

bklau commented Aug 8, 2018

WEAVE_DEBUG=true WEAVE_DOCKER_ARGS="-l com.abc.com.container.ignore" weave launch
/usr/local/bin/weave: 6: /usr/local/bin/weave: Bad substitution

@bklau
Copy link
Author

bklau commented Aug 8, 2018

WEAVE_DOCKER_ARGS="-l com.abc.com.container.ignore" weave launch
unable to create container: API error (500): invalid reference format

@bklau
Copy link
Author

bklau commented Aug 8, 2018

WEAVE_DEBUG= WEAVE_DOCKER_ARGS="-l com.abc.com.container.ignore" weave launch
unable to create container: API error (500): invalid reference format

@bklau
Copy link
Author

bklau commented Aug 8, 2018

Comment: There is a side bug unrelated with WEAVE_DEBUG

@bboreham bboreham added the bug label Aug 8, 2018
@bboreham
Copy link
Contributor

bboreham commented Aug 8, 2018

Ah, ok, I think this is because weaveutil run_container doesn't support -l

Sorry about that.

@brb
Copy link
Contributor

brb commented Aug 30, 2018

Fixed by #3371.

@brb brb closed this as completed Aug 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants