Problem
Trying to use the Docker API to create/stop/delete a container gives the error
client version 1.43 is too new. Maximum supported API version is 1.41
Solution
Use the following
export DOCKER_API_VERSION=1.41
as described here
Trying to use the Docker API to create/stop/delete a container gives the error
client version 1.43 is too new. Maximum supported API version is 1.41
Use the following
export DOCKER_API_VERSION=1.41
as described here
You are trying to set up kubernetes on your local machine but trying to use initialize it with kubeadmin init, returns the following error:
[init] Using Kubernetes version: v1.18.3 [preflight] Running pre-flight checks error execution phase preflight: [preflight] Some fatal errors occurred: [ERROR Swap]: running with swap on is not supported. Please disable swap [preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...` To see the stack trace of this error execute with --v=5 or higher
Switch the swap to off (Ubuntu command below) and try again.
sudo swapoff -a
You would like to test worldPing (https://worldping.raintank.io/worldping/) in your local environment for evaluation purposes.
$ docker exec -it grafana /bin/bash bash-5.0$ grafana-cli plugins install raintank-worldping-app
bash-5.0$ exit $ docker stop grafana $ docker start grafana
Problem
You are trying to run the ps command in a docker container (ie ps ax), but you get:
bash: ps: command not found
Solutionapt install procps
Taken from the answer here
Problem
You have used ‘Bring your own node’ to use a server with one account, but you want to change the account and move the node to the new one.
Solution
Use your old account to terminate the node or login to the server and use the following to stop the running dockercloud-agent:
sudo service dockercloud-agent stop
Go to the Docker Cloud web ui interface, and use the 'Bring your own node'. Copy the token that appears after the sudo -H sh -s on the popup window.
On the server update the token with the one from the new account that you just copied, by running the following:
sudo dockercloud-agent set Token=xxxxx_new_token_xxxx
And now restart the dockercloud-agent on the server:
sudo dockercloud-agent restart
You should now be able to see 'Node xxxx detected' on the Docker Cloud web ui after a couple of minutes.
Problem
After you start using and building Docker images, there is a case that there is a lot of space used even after deleting images and containers (a few GB maybe).
Solution
To clean out the volumes that are no longer used (ie dangling) use the following:
sudo docker volume ls -qf dangling=true | xargs -r sudo docker volume rm
Problem
You have a running docker container running in the background (as a daemon) and you want to connect to it.
Solution
Taken from the answer here, you can use the following to connect to it:
docker exec -i -t name_of_container /bin/bash
In order to be able to use Elixir with the help of Docker, so that you can run different containers with different versions, and to have a shared code folder, you could follow the steps below:
sudo docker pull trenpixster/elixir
sudo ps docker images
sudo docker run -t -i trenpixster/elixir:1.0.3 /bin/bash
sudo docker run -v /home/user/Prog:/Prog -t -i trenpixster/elixir:1.0.3 /bin/bash
where the folders after the -v option are /home/user/Prog (host) and /Prog (docker)
sudo docker run -p 8000 -v /home/user/Prog:/Prog -t -i trenpixster/elixir:1.0.3 /bin/bash
Problem
You are trying to use an image from Docker in your Ubuntu 14.04 system, but you are getting a error like the following:
014/12/13 17:10:23 Error response from daemon: Cannot start container 4023610855c0551bdc44d0e602f20999c0527da3cfe010169707248887b3a1f0: /var/lib/docker/aufs/mnt/4023610855c0551bdc44d0e602f20999c0527da3cfe010169707248887b3a1f0 is not within /var/lib/docker/aufs/mnt/4023610855c0551bdc44d0e602f20999c0527da3cfe010169707248887b3a1f0
Solution
Your docker version is outdated (ie 1.0.1) so you would need to upgrade your docker installation.
There is a script for this (information from here):
After running the following you should be able to use your images as normal with: sudo docker run -t -i image/name bin/bash:
$ curl -s https://get.docker.io/ubuntu/ | sudo sh