Comments (3)
Works fine for me:
$ docker pull oraclelinux:7-slim
Trying to pull repository docker.io/oraclelinux ...
7-slim: Pulling from docker.io/library/oraclelinux
f25d82609194: Pull complete
Digest: sha256:2ed2820810409491b0d8fced14b5f6b3fd8206eb8fbf5f9138d825c5a98db020
Status: Downloaded newer image for oraclelinux:7-slim
Please double-check that you're using oraclelinux:7-slim
in the pull comannd as your error message says slim-7
which is incorrect.
from container-images.
Ah ... sorry ... that was a typo ... I'm getting this when running my Dockerfile:
$ docker build --tag="mymod/httpd:v2" .
Sending build context to Docker daemon 5.12kB
Step 1/7 : FROM oraclelinux:7-slim
---> b19454a5f17a
Step 2/7 : MAINTAINER A N Other [email protected]
---> Running in 85e4f8e2f358
Removing intermediate container 85e4f8e2f358
---> 78ca6714d113
Step 3/7 : RUN sed -i -e '/^[main]/aproxy=http://proxy.example.com:80' /etc/yum.conf
---> Running in de4aa0a6caef
Removing intermediate container de4aa0a6caef
---> 610f6ce9f838
Step 4/7 : RUN yum -y install httpd
---> Running in 6aa14d768cfc
Loaded plugins: ovl
https://yum.oracle.com/repo/OracleLinux/OL7/UEKR4/x86_64/repodata/repomd.xml: [Errno 14] curl#5 - "Could not resolve proxy: proxy.example.com; Name or service not known"
Trying other mirror.
One of the configured repositories failed (Latest Unbreakable Enterprise Kernel Release 4 for Oracle Linux 7Server (x86_64)),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=ol7_UEKR4 ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable ol7_UEKR4
or
subscription-manager repos --disable=ol7_UEKR4
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=ol7_UEKR4.skip_if_unavailable=true
failure: repodata/repomd.xml from ol7_UEKR4: [Errno 256] No more mirrors to try.
https://yum.oracle.com/repo/OracleLinux/OL7/UEKR4/x86_64/repodata/repomd.xml: [Errno 14] curl#5 - "Could not resolve proxy: proxy.example.com; Name or service not known"
The command '/bin/sh -c yum -y install httpd' returned a non-zero code: 1
from container-images.
You're getting a failure resolving the address of proxy.example.com
. Again, this has nothing to do with the Oracle Linux base image. You need to make sure you use the right address that the Docker container can resolve and connect to.
I am closing this issue now. If you have further issues with containers created using Oracle Linux, please open another issue in our Docker images repo: https://github.com/oracle/docker-images
from container-images.
Related Issues (20)
- I'm also trying to build an image for the M1 Mac, using the `arm64v8/oraclelinux:7-slim` base image. I get the following error: HOT 2
- Can we apply the fixes for ELSA-2021-9528 and update the docker images? HOT 6
- Fix docker pull information on the Docker Hub HOT 3
- Cannot install packages on oraclelinux:8(-slim) HOT 2
- Apply ELSA-2022-4796, ELSA-2022-4799 to oraclelinux:8 HOT 1
- Public Key error installing kubctl using oraclelinux:8-slim as a basic image HOT 1
- jfrog reports several medium and low vulnerabilities for oraclelinux:8-slim HOT 1
- docker scan(synk) reports several HIGH vulnerabilities HOT 2
- stable tags of slim variants not available HOT 2
- OracleLinux:7 image having high vulnerabilities with openssl-libs as per Snyk HOT 1
- Yum commands fail HOT 1
- Package manager missing on 8-slim and 9-slim HOT 1
- oraclelinux/manifests/7-slim broken
- where can i download oraclelinux-9-amd64-rootfs.tar.xz HOT 2
- yum does not work in OL9 containers HOT 1
- README refers to microdnf and slim images HOT 1
- problem with repodata in OL8/baseos/latest for package libnghttp2-1.33.0-5.el8_9.x86_64.rpm HOT 2
- sh: sqlplus: command not found
- Why doesn't the official oraclelinx have any software, it doesn't even seem to have oracle installed, what's the point, HOT 2
- debuginfo files missing for OracleLinux 9.3 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 container-images.