Fork me on GitHub

Project Notes

ubuntu

Using the official ubuntu docker images.

Notes

Running the Latest Image

The ubuntu:latest tag points to the “latest LTS”

docker pull ubuntu:latest

If there are no instances of the image running, start a new one and execute directly to shell:

$ docker run --rm -it --entrypoint bash ubuntu:latest
root@652b3942f677:/# uname -a
Linux 652b3942f677 6.5.11-linuxkit #1 SMP PREEMPT Wed Dec  6 17:08:31 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
root@652b3942f677:/# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.4 LTS"

Building a Docker Image Based on Ubuntu

The Dockerfile is a simple example of an image bas on the ubuntu:22.04 image.

It updates the catalog and installs the cowsay program.

Building the image:

docker build -t lck/ubuntu .

Running the image:

docker run --rm lck/ubuntu hi
____
< hi >
----
        \   ^__^
        \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

Cleaning up the image:

docker rmi lck/ubuntu

Credits and References

About LCK#283 docker
Project Source on GitHub Return to the Project Catalog

This page is a web-friendly rendering of my project notes shared in the LittleCodingKata GitHub repository.

LittleCodingKata is my collection of programming exercises, research and code toys broadly spanning things that relate to programming and software development (languages, frameworks and tools).

These range from the trivial to the complex and serious. Many are inspired by existing work and I'll note credits and references where applicable. The focus is quite scattered, as I variously work on things new and important in the moment, or go back to revisit things from the past.

This is primarily a personal collection for my own edification and learning, but anyone who stumbles by is welcome to borrow, steal or reference the work here. And if you spot errors or issues I'd really appreciate some feedback - create an issue, send me an email or even send a pull-request.