Answer the question
In order to leave comments, you need to log in
How to make a bash script continue running inside docker-compose?
There is a shell script:
#!/bin/bash
docker-compose up -d nginx mysql phpmyadmin
docker-compose exec --user=laradock workspace bash
cd laravel
$SHELL
cd laravel
Answer the question
In order to leave comments, you need to log in
Add a script to the container that will perform the actions you need and run it inside the container with docker-compose exec
, that is, just like you are now running bash.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question