using docker without root

This commit is contained in:
orangecoding
2025-10-06 19:55:37 +02:00
parent b858529f06
commit f0f1244baa
2 changed files with 12 additions and 9 deletions

6
docker-test.sh Normal file → Executable file
View File

@@ -7,12 +7,12 @@ if [ "$(docker ps -aq -f name=fredy)" ]; then
docker rm fredy || true
fi
# Build image from local Dockerfile
docker build -t fredy:local .
# Build image from local Dockerfile, forcing a fresh build without cache
docker build --no-cache -t fredy:local .
# Run container with volumes and port mapping
docker run -d --name fredy \
-v fredy_conf:/conf \
-v fredy_db:/db \
-p 9998:9998 \
fredy:local
fredy:local