LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-13-2019, 04:59 AM   #1
Farron77
LQ Newbie
 
Registered: Sep 2019
Posts: 5

Rep: Reputation: Disabled
Docker: ubuntu image doesn't keep the packages I installed


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?

Thanks
 
Old 10-13-2019, 05:43 AM   #2
Farron77
LQ Newbie
 
Registered: Sep 2019
Posts: 5

Original Poster
Rep: Reputation: Disabled
solved it. I needed to create a Dockerfile with the apt-get statements and the packages I want to install.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Setup Ruby on Rails Development environment with Docker and Docker Compose on Ubuntu LXer Syndicated Linux News 0 05-22-2019 11:42 PM
LXer: How to Configure Docker Swarm with multiple Docker Nodes on Ubuntu 18.04 LXer Syndicated Linux News 0 11-15-2018 06:20 AM
LXer: Canonical and Docker Partner to Distribute Docker Releases as Snaps on Ubuntu LXer Syndicated Linux News 0 12-03-2016 10:57 PM
LXer: Ubuntu LXD: Not a Docker replacement, a Docker enhancement LXer Syndicated Linux News 0 11-05-2014 09:40 PM
Sort installed packages by # of dependant packages installed brianez21 Debian 1 01-18-2006 06:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration