Answers for "docker compose exec bash"

11

how to bash into docker container

docker exec -it nginx /bin/bash
Posted by: Guest on May-26-2020
4

docker run command on container

sudo docker exec -it <container name> <command>
Posted by: Guest on July-04-2020
1

docker compose exec compose

docker compose exec <your service name> <execute this command>
Posted by: Guest on February-08-2021
0

insert bash command to docker-compose file

# -c flag indicates to read from string. Combine with &&
command: >
    bash -c "python manage.py makemigrations
    && python manage.py migrate
    && python manage.py runserver 0.0.0.0:8000"
Posted by: Guest on January-16-2021

Browse Popular Code Answers by Language