projectatomic / atomicapp

[UNMAINTAINED] This is the reference implementation of the Nulecule container application Specification: Atomic App
102 stars 71 forks source link

Use docker api rather than docker binary #445

Open dustymabe opened 8 years ago

dustymabe commented 8 years ago

part of #407

will allow us to stop embedding docker binary inside our containers.

concaf commented 8 years ago

@rtnpro I would really want to help on this and #407 if you need any :)

cdrage commented 8 years ago

@containscafeine @rtnpro

I was looking at this before and finding out the best possible way to convert docker run / cli commands to it's respective daemon API call. Unfortunately I was unable to find such way.

May be out of the scope of atomicapp, but starting a Python library that actually converts for example: docker run blahblah -v foo:bar to the http api call would be awesome.

I tried searching for such a library but was unable to :(

concaf commented 8 years ago

@cdrage +1, sounds cool. And when we run the docker daemon in foreground, then with each CLI command, we can see the corresponding API call, so maybe we can use that. But that's in Go.

But in this case, will we not be using one of these?

The last time I checked, python only maintained docker-py, but now I can also see them working on engine-api in Go!

dustymabe commented 8 years ago

I think docker-py is what I thought we would end up using. It is what Ansible uses to run docker containers. If there is a feature missing that we need then we should possibly add it or understand why it doesn't make sense to implement.

concaf commented 8 years ago

@dustymabe @cdrage @rtnpro has some work been done in atomicapp using docker-py or has someone started working on it?

On Wed, Feb 24, 2016, 9:16 AM Dusty Mabe notifications@github.com wrote:

I think docker-py is what I thought we would end up using. It is what Ansible uses to run docker containers. If there is a feature missing that we need then we should possibly add it or understand why it doesn't make sense to implement.

— Reply to this email directly or view it on GitHub https://github.com/projectatomic/atomicapp/issues/445#issuecomment-188049224 .

cdrage commented 8 years ago

@containscafeine not yet! you'll be the first :)

concaf commented 8 years ago

@cdrage PRs incoming :)

dustymabe commented 8 years ago

@containscafeine any progress on this?

I opened up a feature request upstream that might be useful in this endeavor. https://github.com/docker/docker-py/issues/1031

concaf commented 8 years ago

@dustymabe nothing yet, but on it now!