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
Post a Comment