On the beta release of the docker app, you get docker-compose version 1.11.1, which only supports file version 2.0 (that is, the docker-compose file has 'version: "2"' at the top).
There are a few features that I would love to use from 2.1+, but it seems docker for mac is a bit behind.
Is there a way for me to use 2.1+ on a mac, or am I just going to have to wait for the 1.12 docker-compose release on mac?
The latest Docker for Mac (non beta) supports the 2.1 compose file features.
You may be confusing Docker Compose and Docker Engine versions.
A version 2.1 compose file requires a Docker Engine running 1.12.0+ and I can't find a documented Compose version requirement, but it works with Docker Compose 1.10+ here.
Compose client
docker-compose -v
Docker client
docker -v
Docker daemon/server
docker info | grep ^Server
Related
I can check if docker is installed through the which docker or command -v docker commands. But I need to check if docker's compose plugin is installed (I will use it like docker compose up -d later).
Write on terminal:
$ docker compose --version
The return would look like:
Docker version X.Y.Z, build 95e78f4241
Source: https://docs.docker.com/engine/reference/commandline/compose/
For me it worked a little bit differently, docker compose --version just gave me the CLI options of docker.
hotfix#localhost:~$ docker -v
Docker version 23.0.1, build a5ee5b1
hotfix#localhost:~$ docker compose version
Docker Compose version v2.16.0
I am using Ubuntu 22.04.01 LTS and I followed these instructions from Docker for installation.
⚠️ Note
Beware that Docker is currently transitioning from Compose v1 to v2. The older version is called docker-compose which version you can check with:
docker-compose --version
You can just check for docker-compose version docker-compose --version
If docker-compose is not installed, It will throw an error docker-compose in unrecognized.
Is there a solution to make this docker image https://hub.docker.com/r/ibmcom/mq run on Apple M1 chips? For Intel chips, I was able to run this image by:
docker run -e LICENSE=accept -e MQ_QMGR_NAME=QM1 -p 1414:1414 -p 9443:9443 ibmcom/mq
Is there a custom build or an official IBM plan to create an Apple M1 compatible version of this image?
This has already been requested from IBM, you can view and vote on it here.
The only way I got this to work is to emulate Ubuntu Server with UTM, and install docker and IBMMQ image there. Then you can just connect to the docker container through UTM from your host machine. Not the greatest solution, but atleast a workaround for now.
I don't have an M1 mac, so I can't test it but according to this, it says you can try adding --platform linux/amd64.
If that doesn't work then you'll have to build your own (you can base it off the Dockerfile they provided in their GitHub repo. The ones from the official Dockerhub only supports amd64 and s390x architectures.
Do I need to install kubectl after installing docker? Yet docker comes with its own version of kubeCtl?
I was watching this tutorial and I saw that kubectl was installed after installing docker. Even in the Kubernetes docs they say:
Note: Docker Desktop for Windows adds its own version of kubectl to
PATH. If you have installed Docker Desktop before, you may need to
place your PATH entry before the one added by the Docker Desktop
installer or remove the Docker Desktop's kubectl.
This, to me, seems to imply that it is not uncommon to install kubectl when you have installed one that comes with docker. Why is it so?
You may want to have different version of kubectl in certain scenarios. For example you may want to interact with a remote kuberneretes cluster from the same windows system with latest version of kubectl which may not be installed with docker desktop.
It's generally recommended to have a version of kubectl which matches with the Kubernetes API Server version.
I installed docker with the instructions here, downloading from docker-hub
https://docs.docker.com/docker-for-mac/install/
But when I run docker-compose I get this error
pyenv: docker-compose: command not found
The `docker-compose' command exists in these Python versions:
3.6.5/envs/myenv
Also, docker-compose is available under /Users
which docker-compose
/Users/<username>/.pyenv/shims/docker-compose
In this link says, docker-compose for mac need not be installed explicitly as it is part of docker for desktop mac.
https://docs.docker.com/compose/install/
Is something wrong with my installation?
I ran into the same issue on macOS today. Turned out that you need to run the installed app once, it does some additional downloading and setup. That setup includes setting up your path variables.
docker-compose is a utility that is now a parameter in mac docker
so instead of docker-compose up, its now docker compose up
if you install docker from official website then docker-compose will come along with that for mac so need to either upgrade and documentation is present there.
It is possible to install Microsoft CNTK on a macbook? I have OS X El Capitan. The official Microsoft documentation at https://github.com/Microsoft/CNTK/wiki/Setup-CNTK-on-your-machine doesn't provide any information for mac users.
Thank you
As of June 2017, you can only run CNTK on OSX using Docker (which will run a Linux container)
Documentation from Microsoft is available here: https://learn.microsoft.com/en-us/cognitive-toolkit/CNTK-Docker-Containers
If you want to run the CPU version of CNTK (as opposed to a GPU enabled) you'll need to pull a particular version of the docker container. See: https://hub.docker.com/r/microsoft/cntk/
I recommend using the following for CPU CNTK:
docker pull microsoft/cntk:2.0-cpu-python3.5
Once you've pulled the container above, you can use Jupyter Notebooks to look at tutorials etc:
First, run the container:
docker run -d -p 8888:8888 --name cntk-jupyter-notebooks -t microsoft/cntk:2.0-cpu-python3.5
Then run this command:
docker exec -it cntk-jupyter-notebooks bash -c "source /cntk/activate-cntk && jupyter-notebook --no-browser --port=8888 --ip=0.0.0.0 --notebook-dir=/cntk/Tutorials --allow-root"
You'll want to access the shell to run CNTK commands. You can attach a bash shell using docker.
Get your container id
docker ps
Then attach a shell
docker exec -it <container_id> bash
While it might not be supported on Mac directly, you can always use a virtual machine to get around.
You can setup docker in your local environment.
https://docs.docker.com/docker-for-mac/
Follow its documentations on how to install on Docker
https://github.com/Microsoft/CNTK/wiki/CNTK-Docker-Containers
We currently support both Linux and Windows. Mac support is on our ToDo or would be interested in community contribution.
I'm currently building CNTK on a linux machine without root access, installing every dependency with linuxbrew (a fork of homebrew). So I think is possible to build on MacOS natively. You can try building it from source with CNTK linux manual to build from source. Let me know if you have any issue.