Answers for "run command in docker container"

11

how to bash into docker container

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

docker execute command in container

# Windows Powershell | CMD
# Make sure open as administrator
docker exec <container name> <command>
# Linux
sudo docker exec -it <container name> <command>
Posted by: Guest on September-20-2021
4

docker run command on container

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

docker compose keep container running

version: '2'
services:
  my-test:
    image: ubuntu
    command: tail -F anything
Posted by: Guest on April-14-2020
0

run docker container with database as rds metabase

docker run -d -p 3000:3000 
  -e "MB_DB_TYPE=postgres" 
  -e "MB_DB_DBNAME=metabase" 
  -e "MB_DB_PORT=5432" 
  -e "MB_DB_USER=<username>" 
  -e "MB_DB_PASS=<password>" 
  -e "MB_DB_HOST=my-database-host" 
  --name metabase metabase/metabase
Posted by: Guest on May-25-2020

Code answers related to "run command in docker container"

Browse Popular Code Answers by Language