Repository for the docker image
72
As a part of Assignment 1 for Portfolio Setup we have published a docker image to Docker Hub. The repository itself is taken from https://github.com/JWHPortfolio/DockerExample which runs a Python Linear Regression to generate outputs.
Following changes were made on the repository in order to push the image
In requirements.txt instead of sklearn I specified scikit-learn. W/o this I encountered the following error * The 'sklearn' PyPI package is deprecated, use 'scikit-learn' rather than 'sklearn' for pip commands.* . For more details we can look at https://towardsdatascience.com/scikit-learn-vs-sklearn-6944b9dc1736
During building using buildx while the build succeeded it did not publish any image to the local docker repository. docker image ls did not show the successfully built image. To resolve this I had to use the --load parameter and also remove one of the multi arch arguments. Details of this issue can be found here https://github.com/docker/buildx/issues/59. This solution finally worked https://github.com/docker/buildx/issues/59#issuecomment-1168619521
In order to push a readme to Docker hub I also installed a CLI Plugin pushrm https://poweruser.blog/pushing-a-readme-file-to-docker-hub-68200bc4bf71. Using this executing docker pushrm REPOSITORY:IMAGE pushed the readme file
Prior to leveraging the experimental feature of Use containerd for pulling and storing images

After resolving the issue with --load and multi arch parameters, we can see the following

I created an output directory on my local host. Executing docker run had the following output


The output directory had the following files


Content type
Image
Digest
sha256:4bdf2ace8…
Size
563.4 MB
Last updated
over 2 years ago
docker pull tomsriddle/705.603spring24:assignment1_1