Installing Docker on CentOS 6 after removal of docker-io
I'm not sure why docker-io
suddenly disappeared, but the same version previously available through the epel repository can be installed directly from this rpm hosted by Docker:
[root@server]# yum install
https://get.docker.com/rpm/1.7.1/centos-6/RPMS/x86_64/docker-engine-1.7.1-1.el6.x86_64.rpm
[root@server]# docker --version
Docker version 1.7.0, build 0baf609
How to install docker 1.9+ in CentOS 6.5?
CentOS 6 and RHEL 6 are no longer supported, and the last build for them is docker 1.7.1.
That page of the documentation (https://docs.docker.com/engine/installation/centos/) also mentions;
Docker runs on CentOS 7.X
Docker requires a 64-bit installation regardless of your CentOS version. Also, your kernel must be 3.10 at minimum, which CentOS 7 runs.
The kernel that those distro's are running on (2.6.x) is over 13 years old, and although newer features are back-ported to them by Red Hat, they lack certain options that are required by Docker, and have proven to be unstable, and unsuitable for production.
I encourage you to upgrade upgrade to CentOS 7.x if you want to (keep) using Docker.
How to install latest version of make in centos6.6 docker container
You can follow the procedure listed on this page. It uses an RPM made for CentOS 6
located in the Russian Fedora Fixes
repository though, so be aware of that.
I tried it like this and it works:
# docker run --rm -it centos:6.6 bash
[root@1857c0d2c37b /]# yum -y update
[root@1857c0d2c37b /]# curl http://mirror.yandex.ru/fedora/russianfedora/russianfedora/fixes/el/releases/6/Everything/i386/os/russianfedora-fixes-release-6-2.R.noarch.rpm > russianfedora-fixes-release-6-2.R.noarch.rpm
[root@1857c0d2c37b /]# rpm -Uvh russianfedora-fixes-release-6-2.R.noarch.rpm
[root@1857c0d2c37b /]# yum install -y make
After that, the version of make
is 3.82:
[root@1857c0d2c37b /]# make --version
GNU Make 3.82
Built for x86_64-redhat-linux-gnu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
If you want to have it already in a container, just put the commands into a Dockerfile
like this:
FROM centos:6.6
WORKDIR /root
RUN yum -y update && yum clean all; \
curl http://mirror.yandex.ru/fedora/russianfedora/russianfedora/fixes/el/releases/6/Everything/i386/os/russianfedora-fixes-release-6-2.R.noarch.rpm > russianfedora-fixes-release-6-2.R.noarch.rpm && \
rpm -Uvh russianfedora-fixes-release-6-2.R.noarch.rpm && \
yum install -y make
CMD bash
And then build and run your image.
Looking for the package through rpmfind.net
shows make 3.82
available starting with CentOS 7
. I tried installing that one as well, but there are too many unmet dependencies.
How to specify installation path of docker on CentOS6.5?
You can use official docker instruction to install docker-ce on CentOS.
For installing in a specific path, you can use yum install
command with --installroot=root
switch. Something like this:
sudo yum install docker-ce docker-ce-cli containerd.io --installroot=/opt/docker
How to install docker-compose on Linux RHEL 6.6?
RHEL 6 is not recommended and not supported for Docker use.
There was many addition made to recent version of Linux kernels that allows Docker, but they are missing on RHEL 6 because it is designed to be an enterprise system with very long term support (10 years).
Simply put it is too old, and Red Hat themselves aren't porting Docker on it.
Install docker specific version on Centos7 machine
On Centos
For Docker CE Versions
sudo curl -SsL https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo
Now to Install specific Docker versions on Centos/Fedora
For Latest Docker CE versions (≥17.06.0 CE)
sudo yum --showduplicates list docker-ce
sudo yum install docker-ce-17.06.0.ce-1.el7.centos
or
sudo yum install docker-ce-17.06.0.ce-1.fc25
check for reference
https://medium.com/@gauravsj9/how-to-install-specific-docker-version-on-linux-machine-d0ec2d4095
Options to use latest docker on centos 6?
You can try to use a static binary to run docker, but this is all at your own risk; CentOS 6 runs on kernel 2.6, which is 13 years old now. That kernel misses various things needed to run Docker (e.g. Overlay networking is not supported), and is known for having some issues.
Note that running docker-in-docker may get you around "installing" docker 1.10, but will still run on the same kernel, so you'll end up with the same issues
Install docker on RedHatLinux 6.7
Below steps do work for Docker to be installed on OEL 6.10 with a user having super user privileges.
Create a user with SUDO Access as suggested in Red-Hat Docs ([Link][1] speaks well on this process). For instance I created an user as docker with group as docker.
groupadd docker
useradd -m -g docker dockerAdd docker repository for installing latest copy of Docker for RHEL/Centos 6
yum update -y
yum install epel-release
vi /etc/yum.repos.d/docker.repoAdd below contents to /etc/yum.repos.d/docker.repo
[docker-repo]
name=Docker Repo
baseurl=https://yum.dockerproject.org/repo/main/centos/6/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpgSwitch to "docker" user and execute below commands:
sudo yum install -y docker-engine
Post Installation start docker using below commands.
sudo chkconfig docker on
sudo service docker start
Starting cgconfig service: [ OK ]
Starting docker: [ OK ]
sudo service docker status
docker (pid 26925) is running...
ps -ef | grep docker
root 25590 14123 0 Jul27 ? 00:00:00 sshd: docker [priv]
docker 25594 25590 0 Jul27 ? 00:00:00 sshd: docker@pts/1
docker 25595 25594 0 Jul27 pts/1 00:00:00 -bash
root 26925 1 2 00:00 pts/1 00:00:00 /usr/bin/docker -d
docker 27106 25595 0 00:00 pts/1 00:00:00 ps -ef
docker 27107 25595 0 00:00 pts/1 00:00:00 grep docker
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES[1]: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/2/html/Getting_Started_Guide/ch02s03.html
Related Topics
What Are the Possible List of Linux Bash Shell Injection Commands
Run Command After 1 Hour in Linux
Calculating Rounded Percentage in Shell Script Without Using "Bc"
How to Use Cx_Freeze in Linux to Create a Package to Be Used in Windows
How to Redirect from Audio Output to Mic Input Using Pulseaudio
Cannot Clone Repository: Fatal: R Any Gitolite-Admin Gitolite Denied by Fallthru
One Liner to Rename Bunch of Files
How to Overcome an Incompatibility Between the Ksh on Linux VS. That Installed on Aix/Solaris/Hpux
How to Use Watir to Scrape Data from a Website on a Linux Server Without Monitor
How to Know Which Device Is Connected in Which /Dev/Ttyusb Port
How to Change Perf_Event_Open Max Sample Rate
Command to Insert Lines Before First Match
How to Catch the L3-Cache Hits and Misses by Perf Tool in Linux
Undefined Reference to Symbol 'Dlsym@@Glibc_2.4'
How to Change Port Number for Jenkins Installation in Ubuntu 12.04
Bash: Get List of Commands Starting with a Given String
Creating a Raw Printer Queue in Cups (Host) and Adding Them Through Cups (Client)