linux-utils | Various linux utility scripts I often have to rewrite
kandi X-RAY | linux-utils Summary
kandi X-RAY | linux-utils Summary
Various linux utility scripts I often have to rewrite a thousand times until I decide they need to just be saved somewhere
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of linux-utils
linux-utils Key Features
linux-utils Examples and Code Snippets
Community Discussions
Trending Discussions on linux-utils
QUESTION
It appears that yum's dependency resolution behaves differently depending on whether it is invoked from the RUN
statement of a Dockerfile, or from docker run
.
Consider this Dockerfile:
...ANSWER
Answered 2019-Mar-18 at 21:52The reason is that the package manager relies on the information provided by the kernel (via uname(2)
) to decide which versions of packages (for which target architecture) should it install. Though your base image has i386
environment inside, you still run the build on x86_64
kernel, so things become a bit tricky.
When you run the container using docker run
, you pass through the entrypoint linux32
- a small program which asks the kernel to pretend that it runs on i386
hardware. However, when you run docker build
, the entrypoint is not used by RUN
s, so yum
sees that it runs on x86_64
kernel, hence the mess with platforms. You may check this answer for more detailed explanation; the issue is pretty similar.
To build your image correctly (installing only i386
packages), run yum
and other architecture-sensitive commands in RUN
s under linux32
, e.g.:
QUESTION
- Centos 7. During installing Docker it says error:
~ wget -qO- https://get.docker.com/ | sh
...ANSWER
Answered 2017-Jan-13 at 15:15I had the same problem, and managed to solve it. What I did:
Look for a previous CentOs native docker install remnant and remove it:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install linux-utils
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page