Search notes:

docker: run and exec

The following docker run command creates a container named cont-xyz and runs a shell (/bin/sh) in it:
$ docker run --name cont-abc --rm -i -t busybox /bin/sh
In another shell on the host, docker exec is used to run another shell in the same container:
$ docker exec -i -t cont-abc /bin/sh
In one of these created shells, a file is created using touch:
/ # touch /tmp/touchee
Because the other shell is in the same container, it can see the touched file:
/ # ls -l /tmp/
total 0
-rw-r--r--    1 root     root             0 Jan 13 19:38 touchee

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...', 1759612616, '216.73.216.149', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/tools/Docker/commands/exec/run-and-exec(46): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78