How to run the HTTP request without using CURL

busybox has wget but this limited and unsuitable for posting. You can combine busybox with netcat (or nc) for achieving the result. You only need to download netcat binaries for your platform. And here we go: POST_PATH=”/login.cgi” HOST=199.188.1.99 BODY=”Put here HTML body….” BODY_LEN=$( echo -n “${BODY}” | wc -c ) echo -ne “POST ${POST_PATH} HTTP/1.0\r\nHost: … Read more

What is the difference between alpine docker image and busybox docker image?

The key difference between these is that older versions of the busybox image statically linked busybox against glibc (current versions dynamically link busybox against glibc due to use of libnss even in static configuration), whereas the alpine image dynamically links against musl libc. Going into the weighting factors used to choose between these in detail … Read more

Is it possible to install curl into busybox in kubernetes pod

The short answer, is you cannot. Why? Because busybox does not have package manager like: yum, apk, or apt-get .. Acutally you have two solutions: 1. Either use a modified busybox You can use other busybox images like progrium/busybox which provides opkg-install as a package manager. image: progrium/busybox Then: kubectl exec -it busybox — opkg-install … Read more

What is the point of the BusyBox docker image?

A Busybox docker image is useful if one is building a container for which busybox can fulfill its dependency chain without needing a full Linux distro. Often, an embedded appliance can consist of nothing but a statically-linked copy of busybox, an init script that mounts procfs, sysfs, &c. with busybox-provided tools, and then the actual … Read more

I thought I understood Docker until I saw the BusyBox docker image

A Busybox docker image is useful if one is building a container for which busybox can fulfill its dependency chain without needing a full Linux distro. Often, an embedded appliance can consist of nothing but a statically-linked copy of busybox, an init script that mounts procfs, sysfs, &c. with busybox-provided tools, and then the actual … Read more

Go-compiled binary won’t run in an alpine docker container on Ubuntu host

By default, if using the net package a build will likely produce a binary with some dynamic linking, e.g. to libc. You can inspect dynamically vs. statically link by viewing the result of ldd output.bin There are two solutions I’ve come across: Disable CGO, via CGO_ENABLED=0 Force the use of the Go implementation of net … Read more