Skip to content

Instantly share code, notes, and snippets.

@agostof
Created January 28, 2024 18:05
Show Gist options
  • Save agostof/cdfc8891d332bc7fd7bb34d2ac62e71a to your computer and use it in GitHub Desktop.
Save agostof/cdfc8891d332bc7fd7bb34d2ac62e71a to your computer and use it in GitHub Desktop.
Run speedtest-cli on a Docker container
#!/usr/bin/env bash
# simple command to run the speedtest-cli using docker
# it will sleep for 3 secs before starting the test
docker run --rm -it ubuntu /bin/bash -c "apt update && apt install -y speedtest-cli && sleep 3 && speedtest-cli"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment