Skip to content

Instantly share code, notes, and snippets.

@corbindavenport
Last active August 12, 2024 15:24
Show Gist options
  • Save corbindavenport/35f8709b14edd1e24ccf19f710df4e57 to your computer and use it in GitHub Desktop.
Save corbindavenport/35f8709b14edd1e24ccf19f710df4e57 to your computer and use it in GitHub Desktop.
Docker iperf3 container for Synology NAS
{
"CapAdd" : null,
"CapDrop" : null,
"cmd" : "/bin/sh -c 'apk update && apk add iperf3 && iperf3 -s -p 7575'",
"cpu_priority" : 50,
"enable_publish_all_ports" : false,
"enable_restart_policy" : true,
"enable_service_portal" : null,
"enabled" : true,
"env_variables" : [
{
"key" : "PATH",
"value" : "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
}
],
"exporting" : false,
"id" : "03a6d0737563e0001b95464ed0da4f607dc6200fda7957f176cca80a1a95a25f",
"image" : "alpine:latest",
"is_ddsm" : false,
"is_package" : false,
"links" : [],
"memory_limit" : 0,
"name" : "alpine-iperf3",
"network" : [
{
"driver" : "bridge",
"name" : "bridge"
}
],
"network_mode" : "bridge",
"port_bindings" : [
{
"container_port" : 7575,
"host_port" : 7575,
"type" : "tcp"
}
],
"privileged" : false,
"shortcut" : {
"enable_shortcut" : false,
"enable_status_page" : false,
"enable_web_page" : false,
"web_page_url" : ""
},
"use_host_network" : false,
"volume_bindings" : []
}
@corbindavenport
Copy link
Author

Tested in DSM 7.1.1. Save the raw file, then open the Docker application (or Container Manager) and go to Container > Settings > Import > Upload > Browse > Select. The default port is 7575, you can change that by editing the local port, not the container port.

When it's running, you can run a speed test by connecting to the NAS IP address with port 7575, or whatever port you specified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment