Docker Community Forums

Share and learn in the Docker community.

Building code within a container

Hello

I am getting started with the whole docker environment my question might sound possibly basic - please bear with me :slight_smile:

I have a situation where I have a running container that I will need to modify (add some features) and this will imply making (as is running a make command) some extra modules.

Is there any tutorial / pointer as of how I should add a build toolchain in a container (assuming this is the “right” way of doing this) ?

Thanks for any pointer

This is absolutely possible but, unfortunately, few tutorials explain how to do it well. Essentially, you need to bind mount host directories into the container although there are many other considerations.

My Docker for Web Developers book and video course was written for precisely this purpose. You don’t need prior knowledge of Docker and it describes how to set up robust development environments which you can adapt for your own stack. Use the discount code dock30 for 30% off and, if it doesn’t help, I’ll give you your money back.