sudo dnf install vim-common
# For Debian/Ubuntu-based images RUN apt-get update && apt-get install -y xxd # Or install vim-common RUN apt-get update && apt-get install -y vim-common
On Arch-based distributions, xxd is available in the official repositories as a standalone utility. sudo pacman -Syu xxd Use code with caution. Alpine Linux
docker exec -it container_name apk add xxd
xxd V1.10 27oct98 by Juergen Weigert
Unfortunately, by default. Your options:
xxd -i firmware.bin firmware.h
Alternatively, you can install the vim-common package which also includes xxd :
If you see output displaying the version and author, the command is successfully installed. Alternative Solutions (If You Can't Install Packages)