linuxserver / docker-code-server

GNU General Public License v3.0
1.54k stars 314 forks source link

[BUG] Hidden files in .ssh prevent start #151

Closed jhenkens closed 11 months ago

jhenkens commented 1 year ago

Is there an existing issue for this?

Current Behavior

dot files in .ssh at startup cause failed startup.

https://github.com/linuxserver/docker-code-server/blob/b55b470d99691489412635dc9bf335fea3c0cf89/root/etc/s6-overlay/s6-rc.d/init-code-server/run#L30

This line of code looks for files but then cannot change them because bash shopt -s dotglob needs to be set.

Expected Behavior

No response

Steps To Reproduce

mkdir -p config/.ssh
touch config/.ssh/.testfile
docker run --rm -v "$PWD/config:/config" lscr.io/linuxserver/code-server:latest

Environment

- OS:
- How docker service was installed:

CPU architecture

x86-64

Docker creation

docker run --rm -v "$PWD/config:/config" lscr.io/linuxserver/code-server:latest

Container logs

[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    911
User GID:    911
───────────────────────────────────────

chmod: cannot access '/config/.ssh/*': No such file or directory
s6-rc: warning: unable to start service init-code-server: command exited 1
github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 10 months ago

This issue is locked due to inactivity