Search notes:

docker exec

docker exec runs a command in a running container.
docker exec [OPTIONS] CONTAINER COMMAND [ARG...]

Options

-d --detach Detached mode: run command in the background
--detach-keys string Override the key sequence for detaching a container
-e --env list Set environment variables
--env-file list Read in a file of environment variables
-i --interactive Keep STDIN open even if not attached
--privileged Give extended privileges to the command
-t --tty Allocate a pseudo-TTY
-u --user string Username or UID (format: <name|uid>[:<group|gid>])
-w --workdir string Working directory inside the container

Start a shell in a container

Use -t and -i to start an interactive shell in a container:
$ docker exec -it ora23c /usr/bin/bash

See also

Docker commands

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759398439, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/tools/Docker/commands/exec/index(61): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78