This builds linux based image containting devlopment tools from tools repository.
docker pull dmascot/devtools
bashdev with default bash shell login,this is as well default userzshdev with default zsh shell loginfshdev with default fish shell loginThe main process in this conatiner is a respective login shell, meaning if you simply press ctrl +c or type exit container will stop.If you want to exist container without stoping it,use the detach squence ctrl+p ctrl+q
docker rundocker run --rm --name devtools --hostname devtools -it dmascot/devtools
docker run --rm --name devtools --hostname devtools --user zshdev -it dmascot/devtools
docker run --rm --name devtools --hostname devtools --user fshdev -it dmascot/devtools
docker create,docker start and docker attachCreate container
docker create --name devtools --hostname devtools -it dmascot/devtools
docker create --name devtools --hostname devtools --user zshdev -it dmascot/devtools
docker create --name devtools --hostname devtools --user fshdev -it dmascot/devtools
Start container
docker start devtools
Attach to container
docker attach devtools
It can be fairly tricky to build multi arch image, the particular problem I was facing is while building arm64 image using github action it was not deployign tools for bash or zsh users and, failing
After all debugging it boiled down to supply pre-defined CURRENT_SHELL varible in docker build instead of picking shell from process. Since, doing so would pick shell as qemuaarch64 or some other qemu shell.However, being able to debug it locally helped process to nail the issue.
To debug locally,you may use following steps
docker buildx create --use --name multiarch --driver docker-container --bootstrap
docker buildx build --no-cache --platform linux/amd64,linux/arm64 --tag dmascot/tools:latest --progress plain -f docker/Dockerfile .
observer the output and try to follow through, this really depends on how well your script/tool spills out details
docker buildx rm multiarch && docker buildx prune
Content type
Image
Digest
sha256:1953087f1…
Size
297.1 MB
Last updated
about 3 years ago
docker pull dmascot/devtools