Article 4SESV [SOLVED] Docker: ubuntu image doesn't keep the packages I installed

[SOLVED] Docker: ubuntu image doesn't keep the packages I installed

by
Farron77
from LinuxQuestions.org on (#4SESV)
Hello everyone,

I am new to docker and it's concepts.

Anyway, I pulled the ubuntu image from docker's online hub via the docker run command.

After it downloaded and it open the bash prompt, I did

apt-get update
apt-get upgrade -y

And I then install some packages. Everything went fine and I then exited the container.

When I return to the ubuntu container to use those programs I've installed, they were not there.

How can I make the ubuntu image keep the packages I install in them?

Thankslatest?d=yIl2AUoC8zA latest?i=d7J37x5KRKw:Yiz5wxVbvE4:F7zBnMy latest?i=d7J37x5KRKw:Yiz5wxVbvE4:V_sGLiP latest?d=qj6IDK7rITs latest?i=d7J37x5KRKw:Yiz5wxVbvE4:gIN9vFwd7J37x5KRKw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments