Skip to content

Slightly incorrect documentation for user parameter in create_container? #715

@eleweek

Description

@eleweek

The documentation for user parameter in create_container says:

user (str or int): Username or UID

However, supplying it as python's int(client.create_container(user=1000, ...)) gives
docker.errors.APIError: 500 Server Error: Internal Server Error ("json: cannot unmarshal number into Go value of type string")

Supplying it as string works. So this code client.create_container(user="1000", ...) works fine.

I guess it is a minor issue, though only because Celery printed the exception as "500 Server Error: Internal Server Error", so the critical piece of information was missing(json: cannot unmarshal number into Go value of type string). So I guess it is a minor issue, but I figured I should report it.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions