Ever heard of Busybox or you are like me living in a cave. YAS today heard of it
BusyBox: The Swiss Army Knife of Embedded Linux
Its so tiny that the Docker image is only few mb in my case 2.433 MB
Dockerizing BusyBox
To Run BusyBox
docker run --rm -it busybox
This will drop you into sh shell.
You can use Busybox to test your static binaries For example
1. Create a Dockerfile for a binary
From busybox
copy my-binary /my-binary
CMD ["/my-binary"]
2. Now build the image
docker build -t my-binary:v1 .
3. Finally run the container from the image to test your binary
docker run --rm -it my-binary:v1
BusyBox: The Swiss Army Knife of Embedded Linux
Its so tiny that the Docker image is only few mb in my case 2.433 MB
Dockerizing BusyBox
To Run BusyBox
docker run --rm -it busybox
This will drop you into sh shell.
You can use Busybox to test your static binaries For example
1. Create a Dockerfile for a binary
From busybox
copy my-binary /my-binary
CMD ["/my-binary"]
2. Now build the image
docker build -t my-binary:v1 .
3. Finally run the container from the image to test your binary
docker run --rm -it my-binary:v1
Happy dockerizing
No comments:
Post a Comment