Closed ptrkrnstnr closed 6 years ago
@vwmaus I'm trying to mount the docker socket since a few days. If that works the docker commands should be available inside the container. But somehow it does not work.. tried many different ways to mount the socket... Maybe you have an idea... I tried to modify the compose file and add ` volumes:
I also tried to do it directly at the start:
docker run -it -v /var/run/docker.sock:/var/run/docker.sock webinterface
And some other different things from various links:
but when i'm getting inside the container (docker exec -it webinterface bash), i cannot use the docker command as it is not available...
do you have an idea what i'm doing wrong?
@ptrkrnstnr, I will check it today. Did you see my email? Did you pull the updates from my master branch?
Yes i saw the changes but i couldnt do the pull. Have you created a pull rq? I think we did it without a pull rq last time when i was at iiasa, right? Am 13.12.2017 09:28 schrieb Victor Maus notifications@github.com:@ptrkrnstnr, I will check it today. Did you see my email? Did you pull the updates from my master branch?
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.
@ptrkrnstnr in your local repo pull from my remote repo using git pull https://github.com/vwmaus/model-reproducibility.git
Just managed to do the pull. I cannot run the webinterface from visual studio if I’m using your dockerfile and compose.yml files. For now i will stick to my files and i will just adapt the files if we have to do any changes (like adding a shared volume, etc)…
Von: Victor Maus [mailto:notifications@github.com] Gesendet: Mittwoch, 13. Dezember 2017 13:54 An: vwmaus/model-reproducibility model-reproducibility@noreply.github.com Cc: ptrkrnstnr peter.kronsteiner@gmx.net; Mention mention@noreply.github.com Betreff: Re: [vwmaus/model-reproducibility] Cannot Run "Dockerfile-model" inside webinterface container as there is no docker installed (#37)
@ptrkrnstnr https://github.com/ptrkrnstnr in your local repo pull from my remote repo using pull https://github.com/vwmaus/model-reproducibility.git
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vwmaus/model-reproducibility/issues/37#issuecomment-351382892 , or mute the thread https://github.com/notifications/unsubscribe-auth/AfT9n4Kt0G6JDUY3lKhrvS5RAFfK9ODuks5s_8j9gaJpZM4Q3uTB . https://github.com/notifications/beacon/AfT9nxqoUjQddk50gUKGGzwAWdTul9XAks5s_8j9gaJpZM4Q3uTB.gif
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft. https://www.avast.com/antivirus
I had to modify the docker-compose.yml to build the full project. I will help you to change the VS configuration files.
On 13 December 2017 at 20:25, ptrkrnstnr notifications@github.com wrote:
Just managed to do the pull. I cannot run the webinterface from visual studio if I’m using your dockerfile and compose.yml files. For now i will stick to my files and i will just adapt the files if we have to do any changes (like adding a shared volume, etc)…
Von: Victor Maus [mailto:notifications@github.com] Gesendet: Mittwoch, 13. Dezember 2017 13:54 An: vwmaus/model-reproducibility <model-reproducibility@noreply.github.com
Cc: ptrkrnstnr peter.kronsteiner@gmx.net; Mention < mention@noreply.github.com> Betreff: Re: [vwmaus/model-reproducibility] Cannot Run "Dockerfile-model" inside webinterface container as there is no docker installed (#37)
@ptrkrnstnr https://github.com/ptrkrnstnr in your local repo pull from my remote repo using pull https://github.com/vwmaus/ model-reproducibility.git
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub < https://github.com/vwmaus/model-reproducibility/issues/ 37#issuecomment-351382892> , or mute the thread https://github.com/ notifications/unsubscribe-auth/AfT9n4Kt0G6JDUY3lKhrvS5RAFfK9O Duks5s_8j9gaJpZM4Q3uTB . https://github.com/notifications/beacon/ AfT9nxqoUjQddk50gUKGGzwAWdTul9XAks5s_8j9gaJpZM4Q3uTB.gif
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft. https://www.avast.com/antivirus
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vwmaus/model-reproducibility/issues/37#issuecomment-351495466, or mute the thread https://github.com/notifications/unsubscribe-auth/AJRPaFMGn-eSTdzbZ_2EGGXPMCf4Hfynks5tACSagaJpZM4Q3uTB .
concerning this issue: as I have absolutely no clue how to get the docker commands work inside my container, I opened a thread at stackoverflow: https://stackoverflow.com/questions/47802537/how-to-use-docker-commands-inside-aspnetcore-website-docker-container
Somehow you can mount the docker socket and then the commands should be available inside but this does not work for me... a solution for this problem is described here ( https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/) but this does not work for me... :(