Skip to content

Commit 8eb8704

Browse files
authored
docs: Use relative paths
1 parent 75f801a commit 8eb8704

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

readme.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ services:
2929
ports:
3030
- 445:445
3131
volumes:
32-
- /home/example:/storage
32+
- ./samba:/storage
3333
restart: always
3434
```
3535
3636
Via Docker CLI:
3737
3838
```bash
39-
docker run -it --rm -p 445:445 -e "USER=samba" -e "PASS=secret" -v "/home/example:/storage" dockurr/samba
39+
docker run -it --rm --name samba -p 445:445 -e "USER=samba" -e "PASS=secret" -v ${PWD:-.}/samba:/storage dockurr/samba
4040
```
4141

4242
## Configuration ⚙️
@@ -47,10 +47,10 @@ To change the location of the shared folder, include the following bind mount in
4747

4848
```yaml
4949
volumes:
50-
- /home/example:/storage
50+
- ./samba:/storage
5151
```
5252
53-
Replace the example path `/home/example` with the desired folder.
53+
Replace the example path `./samba` with the desired folder or named volume.
5454

5555
### How do I modify the display name of the shared folder?
5656

@@ -96,7 +96,7 @@ If you need more advanced features, you can completely override the default conf
9696
9797
```yaml
9898
volumes:
99-
- /example/smb.conf:/etc/samba/smb.conf
99+
- ./smb.conf:/etc/samba/smb.conf
100100
```
101101
102102
### How do I configure multiple users?
@@ -105,7 +105,7 @@ If you want to configure multiple users, you can bind the [users.conf](https://g
105105
106106
```yaml
107107
volumes:
108-
- /example/users.conf:/etc/samba/users.conf
108+
- ./users.conf:/etc/samba/users.conf
109109
```
110110
111111
Each line inside that file contains a `:` separated list of attributes describing the user to be created.

0 commit comments

Comments
 (0)