Questions tagged [busybox]

BusyBox is a single executable implementation of the common UNIX utilities that has been optimized for minimal size.

BusyBox: The Swiss Army Knife of Embedded Linux

BusyBox combines limited versions of the UNIX utilities commonly found in the GNU fileutiles, shellutils, etc. packages into one executable that has been optimized for systems with limited resources (such as embedded systems). The BusyBox tools are not as full featured as their GNU counterparts but they provide the bare essentials and necessary functionality.

BusyBox is also very modular so the developer can only include the features and commands that they need.

References:

636 questions
107
votes
7 answers

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

Given a binary, compiled with Go using GOOS=linux and GOARCH=amd64, deployed to a docker container based on alpine:3.3, the binary will not run if the docker engine host is Ubuntu (15.10): sh: /bin/artisan: not found This same binary (compiled for…
Oleg Sklyar
  • 9,834
  • 6
  • 39
  • 62
82
votes
8 answers

Error: Cannot Start Container: stat /bin/sh: no such file or directory"

I have been trying to create my own busybox base image. # ./mkimage.sh -t pensu/busybox busybox-static + mkdir -p /var/tmp/docker-mkimage.US3tHy0uBQ/rootfs + tar --numeric-owner -caf /var/tmp/docker-mkimage.US3tHy0uBQ/rootfs.tar.xz -C…
Pensu
  • 3,263
  • 10
  • 46
  • 71
66
votes
3 answers

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

I thought I understood Docker. I understood it as a way to package up software with lots of dependencies..to basically create a little world where absolutely everything is taken care of for a piece of software. Then I stumbled upon this on…
techgnosis
  • 1,879
  • 2
  • 17
  • 19
30
votes
8 answers

Is it possible to install curl into busybox in kubernetes pod

I am using busybox to detect my network problem in kubernetes v1.18 pods. I created the busybox like this: apiVersion: v1 kind: Pod metadata: name: busybox namespace: default spec: containers: - name: busybox image: busybox:1.28 …
Dolphin
  • 29,069
  • 61
  • 260
  • 539
29
votes
3 answers

How to run the HTTP request without using CURL

I have arm-based busybox (Embedded Linux) with limited binaries. How to http post or put without using curl?
irom
  • 3,316
  • 14
  • 54
  • 86
27
votes
6 answers

How to write a binary file using Bash?

My problem is that I need to create a file with this exact bytes: 48, 00, 49, 00. I cannot use C, perl, other scripting language (the target is an embedded device). I tried this using awk, and in desktop it does work: # awk 'BEGIN{ printf…
elcuco
  • 8,948
  • 9
  • 47
  • 69
26
votes
2 answers

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

What is the difference between alpine docker image and busybox docker image ? When I check their dockfiles, alpine is like this (for Alpine v3.12 - 3.12.7) FROM scratch ADD alpine-minirootfs-3.12.7-x86_64.tar.gz / CMD ["/bin/sh"] busybox is like…
Qiulang
  • 10,295
  • 11
  • 80
  • 129
26
votes
1 answer

Ash (shell provided by busybox) tutorial

I found that the busybox's ash syntax is different from the other standard shells (sh, bash, tcsh). Is there any documentation of its syntax or a tutorial for ash ?
Sukanto
  • 992
  • 3
  • 11
  • 21
25
votes
3 answers

kubectl run --command vs -- arguments

I was a little confused with below command: kubectl run busybox --image=busybox --restart=Never -o yaml --dry-run -- /bin/sh -c 'echo hello;sleep 3600' YAML: apiVersion: v1 kind: Pod metadata: creationTimestamp: null labels: run: busybox …
Amit Thakkar
  • 687
  • 1
  • 5
  • 14
24
votes
9 answers

How to use Linux software watchdog?

Can anybody tell me how to handle the software watchdog in Linux? I have a program SampleApplication which runs continuously and I need to restart it if its hangs or closes unexpectedly. I was Googling about this and found Linux has watchdog at…
Verve Innovation
  • 2,006
  • 6
  • 29
  • 48
22
votes
3 answers

dbus_bus_request_name (): Connections are not allowed to own the service

I built a root filesystem on arm. It should run dbus-daemon and avahi-daemon, but when I try to run avahi-daemon $ dbus-daemon --system $ avahi-daemon I get this message: Found user 'avahi' (UID 4) and group 'avahi' (GID 4). Successfully dropped…
Mandy
  • 405
  • 2
  • 6
  • 14
22
votes
5 answers

How does one reboot from an ash shell?

How does one reboot from an ash shell? I have an Ubuntu system that is currently bricked for some reason (not pertinent for this question), which means I boot into a BusyBox ash shell. But the exit command does squat, and reset is irrelevant. There…
Urhixidur
  • 2,270
  • 2
  • 19
  • 24
21
votes
2 answers

How to schedule a cronjob which executes a kubectl command?

How to schedule a cronjob which executes a kubectl command? I would like to run the following kubectl command every 5 minutes: kubectl patch deployment runners -p…
Chillax
  • 4,418
  • 21
  • 56
  • 91
21
votes
1 answer

How to delete the pod for one time task in kubernetes automatically?

In order to check status, I started the busybox in kubernetes using interactive shell. $ kubectl run -i --tty busybox --image=busybox --restart=Never -- sh / # exit $ kubectl run -i --tty busybox --image=busybox --restart=Never -- sh Error from…
Larry Cai
  • 55,923
  • 34
  • 110
  • 156
15
votes
1 answer

Using BusyBox version of netcat for listening tcp port

I need to listen some arbitrary port inside the Linux embedded box. I chose port 6660 because it is meant for uncrypted connections anyway and since the Linux box running customized Linux OS there are not many ports open. I found out that netcat (nc…
arapEST
  • 491
  • 1
  • 4
  • 16
1
2 3
42 43