Skip to content

Instantly share code, notes, and snippets.

@JPalmerGithub
Forked from Ryanb58/install.md
Created October 11, 2022 19:15
Show Gist options
  • Select an option

  • Save JPalmerGithub/fe2bbd132000ce519b77197cb7682915 to your computer and use it in GitHub Desktop.

Select an option

Save JPalmerGithub/fe2bbd132000ce519b77197cb7682915 to your computer and use it in GitHub Desktop.
How to install telnet into a alpine docker container. This is useful when using the celery remote debugger in a dev environment.

docker exec -it CONTAINERID /bin/sh /app # telnet /bin/sh: telnet: not found /app # apk add busybox-extras WARNING: Ignoring APKINDEX.70c88391.tar.gz: No such file or directory WARNING: Ignoring APKINDEX.5022a8a2.tar.gz: No such file or directory ERROR: unsatisfiable constraints: busybox-extras (missing): required by: world[busybox-extras] /app # apk update fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz v3.7.0-243-gf26e75a186 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main] v3.7.0-229-g087f28e29d [http://dl-cdn.alpinelinux.org/alpine/v3.7/community] OK: 9051 distinct packages available /app # apk add busybox-extras (1/1) Installing busybox-extras (1.27.2-r11) Executing busybox-extras-1.27.2-r11.post-install Executing busybox-1.27.2-r7.trigger OK: 77 MiB in 64 packages /app # busybox-extras telnet localhost 6900

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