Relative Content

Tag Archive for bashdockerubuntudockerfile

Docker Exec Shell Commands Without an Interactive Terminal

I am currently in the process of building an Ubuntu Docker Container trying to allow for users to execute bash commands from outside a running container. Ideally I would be be able to allow for users at my company to either be able to execute commands from within the container, or outside the container. I’ve been able to sort the former by running the following within my Dockerfile:

Multi Ubuntu version targetting from single dockerfile

I am using a single Dockerfile to build images for different Ubuntu versions. Those images are then used in CI to build software targeting those different Ubuntu versions.
Sometimes, there are of course some differences between Ubuntu versions, e.g. I’m installing different compilers. The code I use looks something like this