File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,14 @@ services:
29
29
ports :
30
30
- 445:445
31
31
volumes :
32
- - /home/example :/storage
32
+ - ./samba :/storage
33
33
restart : always
34
34
` ` `
35
35
36
36
Via Docker CLI:
37
37
38
38
` ` ` 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
40
40
```
41
41
42
42
## Configuration ⚙️
@@ -47,10 +47,10 @@ To change the location of the shared folder, include the following bind mount in
47
47
48
48
``` yaml
49
49
volumes :
50
- - /home/example :/storage
50
+ - ./samba :/storage
51
51
` ` `
52
52
53
- Replace the example path ` /home/example ` with the desired folder.
53
+ Replace the example path ` ./samba ` with the desired folder or named volume .
54
54
55
55
# ## How do I modify the display name of the shared folder?
56
56
@@ -96,7 +96,7 @@ If you need more advanced features, you can completely override the default conf
96
96
97
97
` ` ` yaml
98
98
volumes :
99
- - /example /smb.conf:/etc/samba/smb.conf
99
+ - . /smb.conf:/etc/samba/smb.conf
100
100
` ` `
101
101
102
102
### 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
105
105
106
106
` ` ` yaml
107
107
volumes :
108
- - /example /users.conf:/etc/samba/users.conf
108
+ - . /users.conf:/etc/samba/users.conf
109
109
` ` `
110
110
111
111
Each line inside that file contains a ` :` separated list of attributes describing the user to be created.
You can’t perform that action at this time.
0 commit comments