Comments (7)
In my experience, having RUN apt-get update
by itself just causes cache issues down the road, so I always RUN apt-get update && apt-get install -y ...
instead which causes a natural cache-bust when you need to change your installed packages, too.
from docker-brew-ubuntu-core.
I have hit the same issue.
from docker-brew-ubuntu-core.
Seems to work fine here: (so I'm going to need more information, but it sounds like you're missing apt-get update && ...
)
$ docker pull ubuntu
Pulling repository ubuntu
e54ca5efa2e9: Pulling image (14.04) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/
ef83896b7fb9: Pulling image (trusty) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/
3db9c44f4520: Pulling image (lucid) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/
463ff6be4238: Pulling image (raring) from ubuntu, endpoint: https://cdn-registrye54ca5efa2e9: Pulling dependent layers
ea7d6801c538: Pulling image (precise) from ubuntu, endpoint: https://cdn-registr3db9c44f4520: Download complete
ef83896b7fb9: Pulling dependent layers
ea7d6801c538: Download complete
195eb90b5349: Download complete
ef83896b7fb9: Download complete
511136ea3c5a: Download complete
6cfa4d1f33fb: Download complete
65b7e9ccb809: Download complete
f8dd6bd14f58: Download complete
a343823119db: Download complete
f127542f0b61: Download complete
fae16849ebe2: Download complete
0f4aac48388f: Download complete
209ea56fda6d: Download complete
3af9d794ad07: Download complete
b7c6da90134e: Download complete
47dd6d11a49f: Download complete
bac448df371d: Download complete
dfaad36d8984: Download complete
5796a7edb16b: Download complete
d7ac5e4f1812: Download complete
2f4b4d6a4a06: Download complete
83ff768040a0: Download complete
6c37f792ddac: Download complete
8a1d8569bf87: Download complete
2be841034d7d: Download complete
99e40d806d07: Download complete
$ docker run -it --rm ubuntu:trusty
root@bbc41cb332ae:/# apt-get update && apt-get install -y openssl
Ign http://archive.ubuntu.com trusty InRelease
Ign http://archive.ubuntu.com trusty-updates InRelease
Ign http://archive.ubuntu.com trusty-security InRelease
Hit http://archive.ubuntu.com trusty Release.gpg
Get:1 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]
Get:2 http://archive.ubuntu.com trusty-security Release.gpg [933 B]
Hit http://archive.ubuntu.com trusty Release
Get:3 http://archive.ubuntu.com trusty-updates Release [58.5 kB]
Get:4 http://archive.ubuntu.com trusty-security Release [58.5 kB]
Get:5 http://archive.ubuntu.com trusty/main Sources [1064 kB]
Get:6 http://archive.ubuntu.com trusty/restricted Sources [5433 B]
Get:7 http://archive.ubuntu.com trusty/universe Sources [6399 kB]
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Get:8 http://archive.ubuntu.com trusty/universe amd64 Packages [5859 kB]
Get:9 http://archive.ubuntu.com trusty-updates/main Sources [73.8 kB]
Get:10 http://archive.ubuntu.com trusty-updates/restricted Sources [14 B]
Get:11 http://archive.ubuntu.com trusty-updates/universe Sources [51.1 kB]
Get:12 http://archive.ubuntu.com trusty-updates/main amd64 Packages [198 kB]
Get:13 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [14 B]
Get:14 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [132 kB]
Get:15 http://archive.ubuntu.com trusty-security/main Sources [26.4 kB]
Get:16 http://archive.ubuntu.com trusty-security/restricted Sources [14 B]
Get:17 http://archive.ubuntu.com trusty-security/universe Sources [4727 B]
Get:18 http://archive.ubuntu.com trusty-security/main amd64 Packages [93.6 kB]
Get:19 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [14 B]
Get:20 http://archive.ubuntu.com trusty-security/universe amd64 Packages [28.5 kB]
Fetched 14.1 MB in 15s (921 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
ca-certificates
The following NEW packages will be installed:
openssl
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 489 kB of archives.
After this operation, 928 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main openssl amd64 1.0.1f-1ubuntu2.4 [489 kB]
Fetched 489 kB in 2s (192 kB/s)
Selecting previously unselected package openssl.
(Reading database ... 11518 files and directories currently installed.)
Preparing to unpack .../openssl_1.0.1f-1ubuntu2.4_amd64.deb ...
Unpacking openssl (1.0.1f-1ubuntu2.4) ...
Setting up openssl (1.0.1f-1ubuntu2.4) ...
root@bbc41cb332ae:/#
from docker-brew-ubuntu-core.
My Dockerfile had RUN apt-get update as first line. I'll try again and report.
from docker-brew-ubuntu-core.
Same here was doing:
FROM ubuntu:14.04
RUN apt-get update
RUN apt-get install -y python-dev python-numpy python-matplotlib ipython-notebook python-pip
it was failing when trying to install python
Your method seems to work
from docker-brew-ubuntu-core.
@tianon Ah I missed the caching headache! Thanks!
from docker-brew-ubuntu-core.
Thanks for your quick turnaround
from docker-brew-ubuntu-core.
Related Issues (20)
- Docker image 21.04 (rolling) - apt update error HOT 6
- less command missing Ubuntu 20.10 image HOT 1
- how to tell the version of python3 supported in the default repository without installing? HOT 2
- Repositories no longer have release files HOT 3
- changelogs of "native" packages are missing HOT 3
- Cannot create new threads in Ubuntu 21.10 HOT 2
- [Question] Why date is not updated when new version is created? HOT 2
- to use gpu but slow HOT 1
- Ubuntu:20.04 image usage guidelines HOT 1
- Update Ubuntu Focal 20.04 image to 20220105 HOT 9
- dpkg broken in Jammy image on singular-doc pkg extraction HOT 2
- Need help in increasing the windows/chrome resolution for Ubuntu image HOT 1
- Update Ubuntu Focal 20.04 image to 20220316 HOT 4
- apt update fails on ubuntu:jammy unless --security-opt seccomp=unconfined is specified HOT 16
- Rerun build job to update ubuntu image LTE 20.04 HOT 1
- `apt update` fails on macOS HOT 1
- how to build 16.04.4 docker image? HOT 1
- Q: Get SERIAL or GitHash from running image HOT 1
- ubuntu:latest throws an error "failed to solve with frontend dockerfile.v0" HOT 3
- Unable to build from ubuntu 21.04 since 23 july HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-brew-ubuntu-core.