adamant-kite-43734
10/23/2023, 9:09 PMcurved-zebra-30454
10/23/2023, 9:37 PMquick-keyboard-83126
10/23/2023, 9:37 PMcurved-zebra-30454
10/23/2023, 9:38 PMdocker inspect -f '{{ .Mounts }}' container_name
quick-keyboard-83126
10/23/2023, 9:40 PM% ls html ; docker run --name test-alpine --rm -v html:/usr/share/nginx/html:ro -v etc:/etc/nginx/conf.d:ro nginx:1-alpine
503.html 50x.html
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: can not modify /etc/nginx/conf.d/default.conf (read-only file system?)
/docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2023/10/23 21:39:59 [notice] 1#1: using the "epoll" event method
2023/10/23 21:39:59 [notice] 1#1: nginx/1.25.2
2023/10/23 21:39:59 [notice] 1#1: built by gcc 12.2.1 20220924 (Alpine 12.2.1_git20220924-r10)
2023/10/23 21:39:59 [notice] 1#1: OS: Linux 6.1.51-0-virt
2023/10/23 21:39:59 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2023/10/23 21:39:59 [notice] 1#1: start worker processes
2023/10/23 21:39:59 [notice] 1#1: start worker process 21
2023/10/23 21:39:59 [notice] 1#1: start worker process 22
2023/10/23 21:39:59 [notice] 1#1: start worker process 23
2023/10/23 21:39:59 [notice] 1#1: start worker process 24
2023/10/23 21:39:59 [notice] 1#1: start worker process 25
2023/10/23 21:39:59 [notice] 1#1: start worker process 26
window 2:
% docker exec -it test-alpine ls /usr/share/nginx/html
50x.html index.html
quick-keyboard-83126
10/23/2023, 9:40 PM[{volume html /var/lib/docker/volumes/html/_data /usr/share/nginx/html local ro false } {volume etc /var/lib/docker/volumes/etc/_data /etc/nginx/conf.d local ro false }]
quick-keyboard-83126
10/23/2023, 9:41 PMlima-rancher-desktop:/$ sudo ls /var/lib/docker/volumes/html/_data
50x.html index.html
quick-keyboard-83126
10/23/2023, 9:43 PMquick-keyboard-83126
10/23/2023, 9:43 PMquick-keyboard-83126
10/23/2023, 9:47 PMquick-keyboard-83126
10/23/2023, 9:48 PM-v
quick-keyboard-83126
10/23/2023, 9:48 PMquick-keyboard-83126
10/23/2023, 9:48 PMcurved-zebra-30454
10/23/2023, 9:57 PMnginx:1-alpine
image isn't readily available for testing? Are you able to put together a minimal example to test with?quick-keyboard-83126
10/23/2023, 9:57 PMquick-keyboard-83126
10/23/2023, 9:58 PMquick-keyboard-83126
10/23/2023, 9:58 PMhtml
folder has two files 50x.html
and 503.html
, you can put whatever you like in themquick-keyboard-83126
10/23/2023, 9:59 PMcurved-zebra-30454
10/23/2023, 9:59 PM1-alpine
tag now ๐quick-keyboard-83126
10/23/2023, 9:59 PMquick-keyboard-83126
10/23/2023, 10:00 PMnginx:alpine
...quick-keyboard-83126
10/23/2023, 10:01 PM1.25.2
and mainline
felt too specific and too general/long ๐, I didn't read far enough over to see alpine
...quick-keyboard-83126
10/23/2023, 10:01 PM1-
from the pod definition for future use...)quick-keyboard-83126
10/23/2023, 10:02 PMquick-keyboard-83126
10/23/2023, 10:02 PMdocker
(in RD) before I assembled that...curved-zebra-30454
10/23/2023, 10:10 PM:latest
and 1-alpine
and they behaved the same way (save for 1-alpine
requiring /bin/sh
instead of bin/bash
)quick-keyboard-83126
10/23/2023, 10:10 PMcurved-zebra-30454
10/23/2023, 10:11 PMquick-keyboard-83126
10/23/2023, 10:11 PMcurved-zebra-30454
10/23/2023, 10:13 PMnginx.conf
via docker run -d -p 8080:80 -v $(pwd)/nginx_config:/etc/nginx/conf.d --name nginx-test nginx:1-alpine
quick-keyboard-83126
10/23/2023, 10:14 PM$(pwd)
quick-keyboard-83126
10/23/2023, 10:14 PM$(pwd)/
works...curved-zebra-30454
10/23/2023, 10:15 PMquick-keyboard-83126
10/23/2023, 10:15 PMdocker run ... -v
notation ๐quick-keyboard-83126
10/23/2023, 10:16 PMquick-keyboard-83126
10/23/2023, 10:16 PMdocker run
to warn about whatever-the-f it's doing here?quick-keyboard-83126
10/23/2023, 10:19 PMdocker "name value"
does not yield remotely useful resultsquick-keyboard-83126
10/23/2023, 10:19 PMquick-keyboard-83126
10/23/2023, 10:19 PM