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

  • Stop a running Docker container by sending SIGTERM
  • How do I proxy every request from a dotnet core app running in a docker container
  • Docker and XDebug not reading breakpoints VSCode
  • Docker command with build / run / etc. “too many open files”
  • getting bundler load error frequently and no such file Gemfile error
  • Docker build takes too long
  • 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.

  • Do Docker Linux Images Contain Kernels?
  • Relative path not working with named volumes in the docker-compose.yml
  • MariaDB Docker Start Fails
  • Where to put test files for webdriverIO testing - using docker container?
  • Kubernetes cluster nodes become unresponsive
  • Determine if new docker container available on docker hub
  • 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.