php - Docker with amazonlinux -


complete newbie docker, concepts sticking.

goal

create container locally matches prod ec2 instance. upgrade php7 , test application.

approach

my first step create basic box amazon linux box. mount , run commands cli. can build commands put in dockerfile.

problem

i build box fine run yum update -y , see updates. however, when run docker ps image isn't listed? can't mount it. composerfile follows...

from amazonlinux:2017.03  run yum update -y 

why box not remaining in open state?

the docker container stops running after run commands complete. need cmd or entrypoint runs , doesn't stop keep container alive. web service, apache or nginx or whatever web service using serve php7 application.


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -