Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed last month.
Improve this question
I am trying to have a modern docker.io version 1.5+ installed on a CentOS 7 64bit system.
The default docker.io that comes with the yum servers is 1.3.2, and
this version is too old for some of the docker.io features I need, e.g.
(install local docker registry on centos 7)
Details of the system:
docker --version
Docker version 1.3.2, build 39fa2fa/1.3.2
System:
cat /etc/centos-release
CentOS Linux release 7.0.1406 (Core)
uname -a
Linux hostname 3.10.0-123.20.1.el7.x86_64 #1 SMP Thu Jan 29 18:05:33 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Any ideas how to install a modern docker.io 1.5+?
Please see the official user guide on installing the latest version of Docker on CentOS
At the very start it says: "While using a package is the recommended way of installing Docker, the above package might not be the current release version. If you need the latest version, you can install the binary directly."
This tells you how to do that: https://docs.docker.com/installation/binaries/
Basically:
check your dependencies
download the binary: wget https://get.docker.com/builds/Linux/x86_64/docker-latest -O docker
run the daemon: sudo ./docker -d &
Now you're good to go.
Here is what I did:
Add a repo to yum using this command
sudo vi /etc/yum.repos.d/cbs.repo
and with this contents:
[virt7-testing]
name=virt7-testing
baseurl=http://cbs.centos.org/repos/virt7-testing/x86_64/os/
enabled=1
gpgcheck=0
Start yum using Applications -> System Tools -> Software
Search for Docker
Note that docker 1.5.x is available for install.
If Docker 1.3.2 is installed, uninstall it by unchecking it and clicking apply.
Click the check box next to Docker 1.5.x and click apply.
Test that the install was successful by running docker --version from command line.
Related
While deploying docker using puppet, I encounter an interesting issue.
docker installs fine if I use: version => latest
docker install fails if I use: version => '20.10.16'
My setup is as follows:
puppet master is Ubuntu 20.04.
puppet agent is Ubuntu 22.04 (on which I am trying to install docker).
I believe puppet docker module supports this setup.
The version lines I tried:
version => '20.10.16'
version => '20.10.16~3-0~ubuntu'
version => '20.10.16~3-0~ubuntu-jammy'
The error I get when I specify a specific version is as follows:
Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install docker-ce=20.10.16' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Package docker-ce is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
docker-ce-cli
Anyone has any idea what can be done so that it installs specific version of docker instead of the latest one?
When running apt-cache madison docker-ce it appears that the version number is 5:20.10.16~3-0~ubuntu-jammy.
Running apt install docker-ce=20.10.16~3-0~ubuntu-jammy returns the same error as yours, but apt install docker-ce=5:20.10.16~3-0~ubuntu-jammy works.
I suggest trying with the 5: in front of the version number.
I am currently using docker, and I require glibc 2.28 on it. However, node:latest only gives me 2.24 on my ARM device. I have tried running update/upgrade, but it has not helped. What is the best way to continue? Should I look for a different image and install node manually?
FROM node:latest
WORKDIR /code
RUN apt update
RUN apt upgrade -y
Upgrading very core libraries like libc can be challenging. It's better to find a newer distribution if you can.
If you look at the Docker Hub node image page, you'll notice that the "latest" image is also "15-stretch"; there is also a "15-buster". These are the names of Debian GNU/Linux releases. "Stretch" is an older release, and "buster" is the current stable Debian release. If you further look at the Debian package page for the libc6 package you'll see that in fact "buster" has GNU libc 2.28, where "stretch" only has libc 2.24.
So the easiest way to get the newer version of libc is to explicitly request the newer version of Debian as the base for the Node installation:
FROM node:current-buster
Recently ran into the same issue with sharp, and I noticed that the bullseye release has glibc version 2.31 which should pass the requirements. See: https://packages.debian.org/bullseye/libc6
The easy solution would be to use FROM node:16-bullseye-slim.
Full list of images at: https://hub.docker.com/_/node
My client uses a Docker images that has a base image of centos:7 from DockerHub. I noticed that Google Cloud Container registry flagged my latest built images with 17 vulnerabilities that all target the kernel-headers package from CentOs, version 3.10.0.
What are my options ?
Can I just upgrade this package or the kernel while staying on CentOs 7 or do I need to upgrade to version 8 ?
With an upgrade to version 8, are there specific breaking updates I should keep an eye on ?
Thank you guys
Update : We are using hdf5, hdf5-devel, devtoolset-7-gcc-c++ and openmpi packages to run some simulations. Removing the kernel-headers tries to remove devtoolset-7-gcc, glibc-devel and glibc-headers packages. I will do some testing without those packages.
yum install -y kernel-headers --enablerepo=centos-kernel
I'm trying to install Opencv 3.2.0 and Nvidia CUDA toolkit 8.0 on Ubuntu 16.04 but I can't configure them together. I get the following error when I try to make project using both:
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find CUDA: Found unsuitable version "8.0", but required is exact
version "7.5" (found /usr/local/cuda)
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:386 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.5/Modules/FindCUDA.cmake:949 (find_package_handle_standard_args)
/usr/local/share/OpenCV/OpenCVConfig.cmake:86 (find_package)
/usr/local/share/OpenCV/OpenCVConfig.cmake:105 (find_host_package)
CMakeLists.txt:10 (find_package)
-- Configuring incomplete, errors occurred!
I have tried installing cuda toolkit 7.5 but its not compatible with ubuntu 16.04 I believe. I'm really clueless now, I hope someone can help with this.
Thanks
so I solved this issue by managing to install toolkit 7.5. Here is how I did it:
Updated nvidia driver for my Operating System
Download cuda toolkit 7.5 and extract it to a folder
$ mkdir ~/Downloads/NVIDIA_TOOLKIT
$ cd ~/Downloads
$ ./cuda_7.5.18_linux.run -extract=~/Downloads/NVIDIA_TOOLKIT;
go to the virtual console by pressing Ctrl + Alt + F1 and turn off
lightdm service
$ sudo service lightdm stop
cd to downloads and install the extracted toolkit and samples
$ cd ~/Downloads/NVIDIA_TOOLKIT
$ sudo ./cuda-linux64-rel-6.0.37-18176142.run
$ sudo ./cuda-samples-linux-6.0.37-18176142.run
Set environment variables in .bashrc file
$ PATH=/usr/local/cuda-7.5/bin
$ LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64
Turn back on the lightdm service
$ sudo service lightdm start
Reboot and you should be able to use the nvcc compiler
For openCV you will have to downgrade your gcc/ g++ compiler to 4.9 since it is not yet compatible with the higher versions
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I would like to update my version of ImageMagick. I originally installed ImageMagick with...
sudo apt-get imagemagick
Current Version:
myapp$ convert -version
Version: ImageMagick 6.7.7-10 2014-03-06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
Location:
myapp$ which convert
/usr/bin/convert
System: Ubuntu14.04 / Apache2.47 / Passenger 4.0.5.5 / Rails 4.1.1 / Ruby 2.1.5
I do not have brew installed. What is the advised way to update?
If you just want to install the latest version from the Ubuntu sources, use
sudo apt-get install --reinstall imagemagick
But it seems that your version is already the current one for Ubuntu 14.04. Upgrading to a newer Ubuntu version would also lead to a newer imagemagick package, see http://packages.ubuntu.com/wily/imagemagick
Alternatively, you can try a version that has been built for a later Ubuntu release, see e.g. https://launchpad.net/ubuntu/wily/+package/imagemagick. Download the deb-file suited for your machine architecture, and install it with
sudo dpkg -i filename.deb
apt-get install -f
However, it is not guaranteed by the Ubuntu developers that this mixing of packages for different Ubuntu versions will work well. But since this is only a single package, there is a good chance that it will work well.
Finally, you can also build it from the upstream sources, see
https://askubuntu.com/questions/267746/how-can-i-install-the-latest-upstream-version-of-imagemagick-without-compiling