Unicode characters in docker parameter strings
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 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?