Comments (11)
Then an unfortunate Docker thing that you cant access older Docker daemons with newer client by default.
The quickest workaround ist to set DOCKER_API_VERSION
:
export DOCKER_API_VERSION=1.23
from minishift.
@jimmidyson maybe minishift docker-env
could set this env var, too ?
from minishift.
FWIW, there is a direct corelation betwen API version number and Docker release number (which you can get from https://api.github.com/repos/boot2docker/boot2docker/releases when downloading the iso). Its not written in stone, but I think its safe to assume that the API version increases on the same footstep as the release numbe (i.e increasing the minor version number).
Here is the current mapping: https://docs.docker.com/engine/reference/api/docker_remote_api/
from minishift.
Is it safe to set that env var? Would there potentially be backwards compatibility issues? Would hope not but...
from minishift.
This variable works when using an older server with a new client and it instructs the client to use exactly this API level. Of course, it depends on the Docker CLI client whether it supports the 'old' API and of course newer API methods/parameters wont probably work. It would be nice if the client would degrade grafecully (saying sth 'this feature is not supported for this API level 'bla'), but not sure whether this is the case.
For basic operations (e.g. without using any Swarm functionality for Docker swarm 1.12) I guess it works correctly, but as it is only a guess, maybe its safer to not set it automatically (but document is somewhere).
from minishift.
Just tested a 1.12 client against 1.11 server -->
docker swarm init
No --secret provided. Generated random secret:
8az4he1n4jdfodz9cl2l96e0m
Error response from daemon: 404 page not found
So not so gracefully ....
from minishift.
Not graceful, but not too worried about using newer functionality against older server version. More interested that what the server supports the client can handle correctly just by setting the client version env var. Seems to be the case
from minishift.
think, too, thats the case for >90% of the changes as from my experience there were only additions and no changes or removals of API methods, parameter keys, and return values keys. Would be interesting whether the client could cope with the rare cases which are really incompatible changes (so that it fallbacks to an old API client call when this env var is set to an older API).
from minishift.
Good way to discover the API version or just hard code it for now?
from minishift.
You can detect it live via <ip:port>/version
but then you need already a running docker daemon.
Or you get the Docker version from boot2docker.iso's release file and then map this hardcoded to the API version by using the table in https://docs.docker.com/engine/reference/api/docker_remote_api/ (needs then to be updated for each Docker release).
from minishift.
Should be fixed now.
from minishift.
Related Issues (20)
- Not able to populate hyperv-virtual-switch flag with External VM Switch value
- Minishift not starting on Windows 10 VirtualBox HOT 4
- Minishift not starting on Rocky Linux 8.5 HOT 1
- This computer doesn't have VT-X/AMD-v enabled HOT 1
- OC commands on Monterey macOS give "fatal error: runtime: bsdthread_register error" HOT 1
- Minishift doesn't work on MacOS Monterey, need new direction if no longer maintained. HOT 2
- Could not set oc CLI context for 'minishift' profile
- please make all installation steps in one Dockerfile & run on port 3000 at the end
- Cannot get OpenShift release version v3.11.0: HOT 1
- Error ".. FAIL E1216 18:22:49.047095 3027 start.go:499] Error starting the VM: Error creating the VM." Docker certificate issue?
- Flag 'http-proxy' is not supported for oc version v3.11.0. Use 'openshift-version' flag to select a different version of OpenShift. FAIL
- > have you tried clearing the cache? and how about deploying a previous version of OpenShift to compare the results? HOT 3
- I installed minishift on my mac, While connected to vpn i am not able to access minishift console but after disconnect, console is accessible, kindly suggest How to access console with vpn as well.
- Github readme contains broken link for Getting Start with Minishift HOT 1
- Unable to connect to web console
- Cannot pull origin-control-plane when starting minishift
- Problem with starting minishift on Windows 10 machine (i5-10600KF cpu) HOT 1
- Starting Minishift FAIL, Error: timed out waiting for the condition HOT 2
- Documentation section in the readme has broken links
- migrate to Go modules HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minishift.