-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0192d62
commit 0a52a72
Showing
2 changed files
with
27 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
docker run \ | ||
-u `id -u`:`id -g` \ | ||
-v /etc/group:/etc/group:ro \ | ||
-v /etc/passwd:/etc/passwd:ro \ | ||
-v /etc/shadow:/etc/shadow:ro \ | ||
-v /etc/sudoers.d:/etc/sudoers.d:ro \ | ||
--rm -it --name sstd_raspberry_pi_64 \ | ||
-v $PWD:/home -w /home \ | ||
--user root \ | ||
sstd_raspberry_pi_64 ${@} | ||
# --rm -it --name sstd_raspberry_pi_64 \ | ||
# sstd_raspberry_pi_64 /bin/sh | ||
# sstd_raspberry_pi_64/raspios_full_arm64:2022-04-04_bullseye /bin/sh | ||
|
||
# `--user root` is to avoid the following error: | ||
# > $ apt install time | ||
# > E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) | ||
# > E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root? |