How to make current environment as image docker in ubunu 14.04?
I have ubuntu 14.04 and installed node.js and many modules recently.
How can I create docker image that have current environment (the image has to use installed node.js in the ubnutu 14.04 and all its modules) without installing nodejs and modules on new Image.
One Solution collect form web for “How to make current environment as image docker in ubunu 14.04?”
There are two options:
- Docker Commit the current image and then push it to a repository as your base image.
- Use a Dockerfile to repeat the steps you have done manually to create your base image.
You can then use
FROM in your downstream images to get the current state without having to rebuild it. Option 2 is preferred as you can see exactly how an image was created and easily make changes.