Docker run start services

I need nginx-openresty and redis in single docker container. I have written docker file its working fine. But thing i need to start my redis service after login into the docker bash to automate this I have written .sh file which contains instrutions like start and stop of redis server and nginx. ENTRYPOINT ["./"]

and .sh file is

  • Not able to see STDERR Output with docker
  • docker image error downloading package
  • Ping Command inside docker container doesnt work
  • How to open multiple terminals in docker?
  • Using the Spotify Maven Docker plugin, how can I change the file permissions of a resource that I add to a Docker container?
  • How I can create docker-machine from Command-Line on Docker for Mac without VirtualBox?
  • cd /etc/redis-installation/utils
    echo -n | ./
    service redis_6379 stop
    cd /
    cp ./dump.rdb /var/lib/redis/6379/
    service redis_6379 start

    My problem is that docker container start and exist when shell execution completed. How can stay the container keep running with nginx and redis in running state.

  • How to prevent “docker-machine create” to install/upgrade docker host, just add it
  • DistributionNotFound when running pserve with docker-compose
  • How to overlay a particular folder in one project into the same folder on other projects
  • Docker: Strider CD dashboard assets broken on installation
  • How to save log files from docker container?
  • Hypervisor is not running?
  • One Solution collect form web for “Docker run start services”

    Try using docker-compose with a link between your app container and your redis container. I suggest using the official redis container

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.