Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Unicode characters in docker parameter strings #56

Open
rfuerst87 opened this issue May 20, 2019 · 1 comment
Open

Unicode characters in docker parameter strings #56

rfuerst87 opened this issue May 20, 2019 · 1 comment

Comments

@rfuerst87
Copy link

rfuerst87 commented May 20, 2019

Apparently some characters are replaced with unicode in .aurora files which causes the container to fail. For example I tried to pass additional parameters to docker like so:

...
container = Docker(
  image = "...",
  parameters = [
    Parameter(name = "mount", value = "type=bind,source=/mnt/foo,target=/foo/bar")
  ]
)
...

The docker container failed to launch with exit code 125. Inspecting the Aurora Struct Dump reveals that equals (=) in docker parameters were replaced by \u003.

...
"value": {
  "image": "...",
  "parameters": [ {
    "name": "mount",
    "value": "type\u003dbind,source\u003d/mnt/foo,target\u003d/foo/bar"
  }]
}
...

I also tried to pass a python raw string to the Parameter object. Unfortunately that didn't work either. I finally worked around the issue by passing a volume parameter instead of mount.

@mauri
Copy link
Contributor

mauri commented Aug 24, 2019

@rfuerst87 the \u003d displayed in the dump seems to be an artifact of the struct serializer. The equal signs in the parameters are correctly passed around to docker, that can be checked in the output of running docker inspect on the stopped containers.

Is there any other error reported by docker in the daemon logs?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants