Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run image #3

Open
kreativ-software opened this issue May 12, 2017 · 6 comments
Open

Run image #3

kreativ-software opened this issue May 12, 2017 · 6 comments

Comments

@kreativ-software
Copy link

Hi,
When I run dolphin in a container (redbird) can I run an image (start a new container) with it?
I can't see it in the help or code.

Kind regards,

Kasper Veenvliet

@manast
Copy link
Member

manast commented May 12, 2017

If dolphin and the container are configured properly you can do everything that you could do if you were on the docker host.

@manast
Copy link
Member

manast commented May 12, 2017

oh well, I just realized that the container.run command is not implemented. Should be pretty straightforward to do it though.

@manast
Copy link
Member

manast commented May 12, 2017

you can get some inspiration from this: https://github.com/OptimalBits/dolphin/blob/master/lib/images.js#L24

@kreativ-software
Copy link
Author

That looks pretty straightforward!
Do I set it up to use the docker.sock? How?

@manast
Copy link
Member

manast commented May 12, 2017

It is explained on the README

@manast
Copy link
Member

manast commented May 12, 2017

sorry I see a piece of information is missing, you need to "share" the socket with the container, for example like this:

docker run\
 --restart always\
 --name mycontainer\
 -v /var/run/docker.sock:/var/run/docker.sock\
 -d -t myimage
 mycommand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants