vjuranek / docker-build-step-plugin

Other
8 stars 97 forks source link

container dies just after run #39

Open slawekgh opened 8 years ago

slawekgh commented 8 years ago

fragment of docker events: 2016-06-17T13:43:14.369446469Z container start 4c2398f82c47cb5e303e62227d0f6a38df70864875045c073b4636402e69343e (image=ngx91 name=ngx-91) 2016-06-17T13:43:14.409024819Z container die 4c2398f82c47cb5e303e62227d0f6a38df70864875045c073b4636402e69343e (exitCode=0, image=ngx91 , name=ngx-91)

i think there is lack of docker run -d option in docker run backend

with -d i can run all of this containers

slawekgh commented 8 years ago

Update - it seems plugin runs smth like "docker -d ..." BUT not "docker -d -t -i ..."

So there is imho no option to use bash as CMD section in Dockerfile (because of lack of terminal I/O and interactive mode)

I tested with "while [ 1 ] ; do ... " in CMD section and works great

Problem is how to run standard images (for example ubuntu, alpine) when thay have bash in CMD ?

slawekgh commented 8 years ago

+1