aurora icon indicating copy to clipboard operation
aurora copied to clipboard

Unicode characters in docker parameter strings

Open rfuerst87 opened this issue 6 years ago • 1 comments

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.

rfuerst87 avatar May 20 '19 12:05 rfuerst87

@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?

mauri avatar Aug 24 '19 04:08 mauri