How to install a package using apt-get in ubuntu container inside Docker -


i have installed docker on windows 10. after that, pull ubuntu container. after running container docker run -t -i --privileged ubuntu bash or docker run -it ubuntu command, i've root@7f72926f3608:/# in console.

then, try install python package using apt-get $sudo apt-get install python or apt-get install python, i've gotten following error in console:

reading package lists... done building dependency tree reading state information... done e: unable locate package python 

hence, the question how can install package in ubuntu container inside docker?

run apt-get update , install packages.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -