this post was submitted on 30 May 2024
3 points (80.0% liked)

Docker

36 readers
1 users here now

Docker is an open-source project to easily create lightweight, portable, self-sufficient containers from any application. The same container that a developer builds and tests on a laptop can run at scale, in production, on VMs, bare metal, OpenStack clusters, public clouds and more.

founded 1 year ago
MODERATORS
 

There's a service that I want to use, however for reasons, it no longer has any builds available. Consequently, I am thinking of building it myself. How does one go about doing that and then afterwards, how do I get it up on Docker hub? Can I just create an account and upload?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 2 points 5 months ago* (last edited 5 months ago) (1 children)

You can absolutely do this without polluting anything on your system.

The directory name doesn't matter, when you build the image you'll specify a tag for it.

The only thing to watch for is when you build the same tag name again, as you iterate on the Dockerfile changes, docker won't remove the old image from your local registry. It will just untag it, so you might see several images called something like "". Remember to remove those every so often so you don't fill up your Pi's storage.

Edit: Also Docker will keep a "build cache" for this stuff, which doesn't really "pollute" anything but it does take up disk space. You can clean that up with docker builder prune, read this for all the usage info: https://docs.docker.com/reference/cli/docker/builder/prune/

[โ€“] [email protected] 2 points 5 months ago

I cannot thank you enough. Thank you so much!