Skip to content

There is a bug in the run method of containers. #295

@Canyun

Description

@Canyun

Long story short

  • Expected behaviour: success
  • Actual behaviour: failed

How to reproduce

this is source code at containers.py line 71
image
pull method without auth parameter will fail

import aiodocker
import asyncio

docker = aiodocker.Docker()


async def login():
    client = aiodocker.Docker()
    await client.auth(**{
        "username": "admin",
        "password": "admin",
        "serveraddress": "myserver"
    })
    await client.images.pull("myserver/el6/compile:v105")


if __name__ == '__main__':
    loop = asyncio.get_event_loop()
    loop.run_until_complete(login())
    loop.close()

Your environment

Python==3.6.6
aiodocker==0.14.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions