dolphin icon indicating copy to clipboard operation
dolphin copied to clipboard

Run image

Open kreativ-software opened this issue 8 years ago • 6 comments

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

kreativ-software avatar May 12 '17 11:05 kreativ-software

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

manast avatar May 12 '17 11:05 manast

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

manast avatar May 12 '17 11:05 manast

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

manast avatar May 12 '17 11:05 manast

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

kreativ-software avatar May 12 '17 11:05 kreativ-software

It is explained on the README

manast avatar May 12 '17 11:05 manast

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

manast avatar May 12 '17 11:05 manast