smb/tests/start-server.sh
2025-10-25 23:36:46 +02:00

9 lines
443 B
Bash
Executable file

#!/usr/bin/env bash
#
# SPDX-FileCopyrightText: 2025 Robin Appelman <robin@icewind.nl>
# SPDX-License-Identifier: MIT
#
docker rm -f smb-test
docker run -d --name smb-test -e ACCOUNT_test=test -e UID_test=1000 -e SAMBA_VOLUME_CONFIG_test="[test]; path=/tmp; valid users = test; guest ok = no; read only = no; browseable = yes" servercontainers/samba
docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' smb-test