How to know if you have Docker Version, 1.13? - docker

How do you know if you have Docker Version 1.13 or higher? My Client/Server version is : 1.6.2 and Client/Server API version is: 1.18. This makes me think I have a version above 1.13; however, I don't have the functionality of Docker 1.13. i.e. I can't use "docker stack deploy" or "docker container".

You can in terminal run command docker --version

Related

"docker: 'compose' is not a docker command" when running docker compose

After installing the latest version of Docker Desktop on my M1 Mac pro, I can't seem to run docker compose despite having all the correct files installed.
I've tried running docker-compose and docker compose in my terminal and I get this message: docker: 'compose' is not a docker command.
After running docker --version, I'm currently on Docker version 20.10.21, build baeda1f
Compose is correctly added to my PATH vars under /usr/local/bin/, which has the following files:
com.docker.cli docker-credential-desktop fuzzy_match kubectl.docker
docker docker-credential-ecr-login httpclient vpnkit
docker-compose docker-credential-osxkeychain hub-tool xcodeproj
docker-compose-v1 docker-index kubectl
When I run which docker-compose, it returns /usr/local/bin/docker-compose so it seems like everything is configured correctly.
Also running docker-compose-v1 does seem to work for some weird reason.
Any ideas?
Edit: Seems like this was fixed after installing the newest version of Docker (Docker Desktop 4.14.1 (91661), Docker version 20.10.21, build baeda1f).
Install Rosetta 2 with softwareupdate --install-rosetta, then uncheck Use Docker Compose V2 in Docker Dashboard -> Settings -> General.

What is the exact version of docker-compose to use with docker 1.7.0?

I am trying to run docker 1.7.0 in CentOS 6. I tried using docker-compose 1.12.0 but
got this "Error:client and server don't have same version(client API version:122, server API version:1.19). So I am trying to find out which docker-compose version support in my case.
Other info:
OS: Centos 6.10
Kernel:2.6.32
Docker client/server version:1.7.0
Docker client/server API version :1.19
I got the answer it is docker-compose 1.4.0.

Change/Degrade Docker API version

Need some serious help, I have installed docker on ubuntu18.04, and also tested through command 'docker run hello-world', it ran successfully. Now when I run 'docker compose up -d', it says
'Error :Couldn't connect to docker daemon.You may need to create docker-machine start default'.
Also when checked error through docker --verbose it says
'Error:Bad Request : Client API version is too new 1.36 -Maximum supported API version is 1.35'.
that's the case then how can I upgrade the API-version in for docker? My docker version is 17.12.
Plz check if you are running the correct command, it is:
docker-compose up -d
you are missing a "-"

Creating container image of old Centos

I need to create Centos 6.9 32bit system image. I found manual how to do that which contains link to script.
I suppose for this reason I need to run Centos 6.9 32bit, install docker in it and then run script.
Trying to install docker in Centos 6.9 and. Found that it is not possible to install on this system according to requarements in manual:
OS requirements
To install Docker CE, you need a maintained version of CentOS 7
How to create container for of old Centos 6.9 ?
There is already an official CentOS 6 32-bit image in Docker Hub, so you might not need to create your own. It can run on an x64 host.
There is no centos:6.9 tag but a quick test of the centos:6 tag shows that it is 6.9 anyway:
$ docker pull i386/centos:6
6: Pulling from i386/centos
6fe27d5f397b: Pull complete
Digest: sha256:af47b24bee01b29f3c86e484b716651f89c93d8ca73d88c1a74019c691e0d1e2
Status: Downloaded newer image for i386/centos:6
$ docker run -it i386/centos:6 bash
[root#508467e5637e /]# cat /etc/redhat-release
CentOS release 6.9 (Final)
Update
I see from your previous question that you had already found the official 32-bit CentOS 6 image but want it to run on a 32-bit host kernel.
According to the docker installation prerequisites, it needs a 64-bit host. Docker does have 32-bit packages but they only contain the docker client and not the daemon.
If you want to run a 32-bit version of the docker-daemon, you could try following this blog post which describes how to build it from source.

Updating Docker, Docker Machine, Docker Compose

I am trying to update my docker related tools for macOS and I am unsure of how to go about it the following is my docker versions
Docker version 1.12.6, build 78d1802
docker-machine version 0.9.0, build 15fd4c7
docker-compose version 1.9.0, build 2585387
I do not use docker for mac and interact with docker via the command line. So my question is....How do I upgrade them individually or otherwise?
You can just use this link to download the new versiĆ³n of docker, docker-machine and toolbox https://download.docker.com/mac/stable/Docker.dmg And continue using docker-machine

Resources