How to install docker version 17.04 on Amazon Linux? - docker

I tried installing docker on Amazon Linux but found that currently sudo yum install docker installs version 1.12. However, I need docker version 17.04. How can I upgrade my docker version or install version 17.04 on Amazon Linux ?

Docker instillation comes with a predefined Cloud formation template this can be found in , the version is 17 here
https://editions-us-east-1.s3.amazonaws.com/aws/stable/Docker.tmpl
you can always run an upgrade command if you do not want to sue a cloud formation template
$ docker-machine upgrade default

Related

Docker desktop mac wont update docker compose

I updated docker desktop for Mac (intel) this morning to Docker Desktop 4.9.1. My docker compose version won't seem to update. When I run docker-compose --version in my terminal it returns docker-compose version 1.25.5, build unknown. I tried installing docker-compose with brew and after some tinkering I got confirmation that it installed version 2.6.0, however after restarting docker desktop and my computer, I still get 1.25.5 when I run docker-compose --version.
How can I force docker to use a newer version of docker-compose?
NOTE: In my docker-compose.yml file I have version 2 running.
My docker compose also came via Docker Desktop on MacOS and it did not update/had the latest the latest version of docker-compose. I resolved this by installing docker-compose via brew:
https://formulae.brew.sh/formula/docker-compose
brew install docker-compose
Don't forget to follow the after-install instructions:
"Compose is now a Docker plugin. For Docker to find this plugin, symlink it:"
mkdir -p ~/.docker/cli-plugins
ln -sfn /opt/homebrew/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose
The only way I was able to solve this was to completely manually uninstall docker desktop and all docker related items from brew. I deleted every docker file I could find from my lib and then reinstalled.

docker supposedly installed but not runnable

If I do a docker command like
docker -version
I get the error that docker is not installed and that I can do sudo apt-get install docker to install it. If I do this, it says that docker is the latest version. Do I need to set some kind of path to the binary to get it to run?
If I do which docker, there is no answer.
I have found the answer to the question.
Apparently there is a package called "docker" which has nothing to do with docker the container software which is actually docker-ce. The application I had installed was the fake docker, not the container-ware.
To install docker-ce there is a process given on Digital Ocean which can be used.
.

How to install Docker CE on RHEL 7.2, since we are doing a poc we dont want to pay for EE

We are having RHEL 7.2, native docker is not available in the OS. So for installing Docker CE, we have to install docker using CentOS repo (read from blogs). Is this the only option available to install docker on RHEL?
Docker is also available via the rhel-7-server-extras-rpms repository, assuming you have the correct subscription attached to your RHEL 7.2 installation.
You can enable the repository with this command:
$ sudo subscription-manager repos --enable rhel-7-server-extras-rpms
After that, you should see docker available to you.

Installing docker 17 version on centos 7

I want install docker 17 on centos,can you please suggest me on this.
once i have used below yum command to install docker
yum install docker*
I got 1.12.6 version.
The 1.12.6 version you have installed is a package that is maintained by Red Hat / CentOS.
To install the official Docker package, that is maintained by Docker, follow the instructions in the documentation; https://docs.docker.com/engine/installation/linux/centos/
Be sure to uninstall the package you have installed before installing the official package.
You're installing last Docker version that is in your CentOS repos.
To install last Docker stable version, first, uninstall your current Docker installation. Then, you can easily install last version using Docker official installation script.
wget -qO- https://get.docker.com/ | sh

how to install docker in sles 12?

I want to install docker stable version in my suse system (version sles 12). For installing docker in suse system, need to add repository of docker.
I didn't found any url (repository url) for adding docker repository of version 1.6. I found docker version 1.12 but it is not working in my case. I removed docker repository now.
can anyone suggest me how I can add correct repository and install docker further in my system?
edit- sample commands and output
docker -v
Docker version 1.6.0, build 4749651
docker pull hello-world
FATA[0000] Cannot connect to the Docker daemon. Is 'docker -d' running on this host?
sudo docker pull hello-world
sudo: docker: command not found
You can use zypper to do that.
You have to adapt the repository url to your SUSE version. To find the correct package repository, please follow this link
https://software.opensuse.org/download.html?project=Virtualization%3Acontainers&package=docker
sudo zypper addrepo https://download.opensuse.org/repositories/Virtualization:containers/openSUSE_Leap_15.0/Virtualization:containers.repo
sudo zypper dist-upgrade
sudo zypper update
sudo zypper install docker
Source : https://w3blog.fr/en/2019/03/25/install-docker-open-source-on-linux-suse/
You will find Docker 1.6 at
https://get.docker.com/builds/Linux/x86_64/docker-1.6.0.tgz
The general doc for installing docker in Suse is available at
https://docs.docker.com/engine/installation/linux/SUSE/

Resources