Skip to content

Commit a45eb2b

Browse files
committed
Expand and reorganise README
1 parent 67b7c16 commit a45eb2b

File tree

1 file changed

+60
-22
lines changed

1 file changed

+60
-22
lines changed

README.md

Lines changed: 60 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,88 @@
11
## Unofficial Multi-architecture Resilio Sync Docker files
22

3-
> **WARNING:** \
4-
> This is still somewhat volatile while I settle on how to
5-
handle these images, the tags in particular are being re-defined
6-
as I make small tweaks. Please keep it mind (everything should work, though).\
7-
I'll remove this warning once the repository stabilises.
3+
This is a fork of the official [Resilio Sync for Docker repository](https://github.com/bt-sync/sync-docker) with small changes to be used on all architectures supported by Resilio Sync.
84

9-
This is a fork of the official [Resilio Sync for Docker repository](https://github.com/bt-sync/sync-docker) with small changes to be used on the all architectures supported by Resilio Sync.
5+
### Running with Docker Compose
106

11-
This repository has just a few key differences compared to the upstream one:
7+
This is my recommended way of running.
128

13-
1. A makefile is provided to generate the different `Dockerfile`s and images.
14-
1. Multiple `Dockerfile`s are provided, one per arch. They are different from the official one in the way the image is built, to ease multi-architecture support, but the end structure is the same, except the License for Resilio Sync is also included in the image.
15-
1. They're based on a _debian stable slim_ image instead of on an Ubuntu image.
9+
Edit `docker-compose/docker-compose.yml` to fit your needs, then:
1610

17-
In practice they should work exactly the same as the official one.
11+
```shell
12+
cd docker-compose
13+
docker compose up -d
14+
```
1815

19-
The `Dockerfile`s:
16+
### Running with Docker
2017

21-
* `amd64.Dockerfile`: For AMD64 aka x86_64 aka x64 (64 bit PC)
22-
* `arm64.Dockerfile`: For ARM64 aka ARMv8 aka AArch64 (64 bit ARM)
23-
* `armhf.Dockerfile`: For armhf aka ARMv7 (and up), (32 bit ARM with hardware float support). Superseded by `arm64`.
24-
* `armle.Dockerfile`: For armle aka EABI ARM (ARMv5 and up), (32 bit ARM). Superseded by `armhf` and `arm64`. Docker Hub does not provided official support for this architecture. NOTE: This image isn't a part of the auto-selected architecture images (e.g. `resiliosync-multiarch:latest`), you'll have to use `resiliosync-multiarch:armle-latest` directly.
25-
* `i386.Dockerfile`: For i386 aka x86 aka IA-32 (32 bit PC). Superseded by `amd64`. Docker Hub does not provided official support for this architecture.
18+
See [upstream usage instructions](#usage) below, simple example:
19+
20+
```shell
21+
docker run -d --name Sync \
22+
-p 127.0.0.1:8888:8888 \
23+
-p 55555/tcp \
24+
-p 55555/udp \
25+
-v ./data:/mnt/sync \
26+
-v /etc/localtime:/etc/localtime:ro \
27+
--restart always \
28+
outlyernet/resiliosync-multiarch
29+
```
2630

2731
### Pulling the image from Docker Hub
2832

2933
For the architectures included in the multiarch support (`amd64`, `armhf`, `arm64` and `i386`):
3034

31-
# docker pull outlyernet/resiliosync-multiarch
35+
```shell
36+
docker pull outlyernet/resiliosync-multiarch
37+
```
3238

3339
which is equivalent to
3440

35-
# docker pull outlyernet/resiliosync-multiarch:latest
41+
```shell
42+
docker pull outlyernet/resiliosync-multiarch:latest
43+
```
3644

3745
may also use the version tag:
3846

39-
# docker pull outlyernet/resiliosync-multiarch:2.6.3
47+
```shell
48+
docker pull outlyernet/resiliosync-multiarch:2.7.3
49+
```
4050

4151
As of this writing images for ARMv5 or ARMv6 (`armle`) are excluded from the automatic architecture selection mechanism, since Docker Hub doesn't appear to distinguish them from ARMv7. For those use:
4252

43-
# docker pull outlyernet/resiliosync-multiarch:latest-armle
53+
```shell
54+
docker pull outlyernet/resiliosync-multiarch:latest-armle
55+
```
4456

4557
or
4658

47-
# docker pull outlyernet/resiliosync-multiarch:2.6.3-armle
59+
```shell
60+
docker pull outlyernet/resiliosync-multiarch:2.6.3-armle
61+
```
62+
63+
### Build instructions
64+
65+
> **WARNING:** \
66+
> This is still somewhat volatile while I settle on how to
67+
handle these images, the tags in particular are being re-defined
68+
as I make small tweaks. Please keep it mind (everything should work, though).\
69+
I'll remove this warning once the repository stabilises.
70+
71+
This repository has just a few key differences compared to the upstream one:
72+
73+
1. Multiple `Dockerfile`s are provided, one per arch. They are different from the official one in the way the image is built, to ease multi-architecture support, but the end structure is the same, except the License for Resilio Sync is also included in the image.
74+
1. A makefile is provided to generate the different `Dockerfile`s and images.
75+
1. They're based on a _debian stable slim_ image instead of on an Ubuntu image.
76+
77+
In practice they should work exactly the same as the official one.
78+
79+
The `Dockerfile`s:
80+
81+
* `amd64.Dockerfile`: For AMD64 aka x86_64 aka x64 (64 bit PC)
82+
* `arm64.Dockerfile`: For ARM64 aka ARMv8 aka AArch64 (64 bit ARM)
83+
* `armhf.Dockerfile`: For armhf aka ARMv7 (and up), (32 bit ARM with hardware float support). Superseded by `arm64`.
84+
* `armle.Dockerfile`: For armle aka EABI ARM (ARMv5 and up), (32 bit ARM). Superseded by `armhf` and `arm64`. Docker Hub does not provided official support for this architecture. NOTE: This image isn't a part of the auto-selected architecture images (e.g. `resiliosync-multiarch:latest`), you'll have to use `resiliosync-multiarch:armle-latest` directly.
85+
* `i386.Dockerfile`: For i386 aka x86 aka IA-32 (32 bit PC). Superseded by `amd64`. Docker Hub does not provided official support for this architecture.
4886

4987
### Links
5088

0 commit comments

Comments
 (0)