![]() Note that if you are not the root user, you need to add sudo before all the commands. Open a terminal and run the following command. Note that we can do this using two ways - either we mention all the commands inside a dockerfile and build the image all at once or we can do it step by step and keep committing the changes through CLI. We will update the ubuntu base image, install 3 packages - vim editor, firefox and python 3. ![]() In this article, we will show you how to create an ubuntu base image and on top of that create intermediate image layers by adding packages in it and keep committing the changes. You need to create a base image of an OS distribution and after that you can add and modify the base image by installing packages and dependencies and committing the changes to it. After you have installed docker on your linux machine, the next step is to create an image and run a container.
0 Comments
Leave a Reply. |