This is a pull and run docker image to use ibmcloud devtools easily.
You can find detailed ibmcloud commands through this link.
You need to have docker installed on your machine.
You can copy and paste the following command to run this image and enter inside the container. This container wont remove itself if you exit it intentionally or by mistake.
docker run -d -t --name ibmcloud-devtools volaka/ubuntu-with-ibmcloud-devtools
docker exec -it ibmcloud-devtools bash
To use docker inside this container (Docker in Docker / DinD) you have to bind your docker socket with this container. By doing that, you will access all of the docker images and containers which had been run inside the container. You can bind the socket wiht the following code:
docker run -d -t -v /var/run/docker.sock:/var/run/docker.sock --name ibmcloud-devtools volaka/ubuntu-with-ibmcloud-devtools
docker exec -it ibmcloud-devtools bash
If you want to access to your current directory path in this container and use docker inside, you can use the following commands:
docker run -d -t -v /var/run/docker.sock:/var/run/docker.sock -v "$PWD":/root/my-pc --name ibmcloud-devtools volaka/ubuntu-with-ibmcloud-devtools
docker exec -it ibmcloud-devtools bash
cd /root/my-pc
ls -al
Enter the login command:
ibmcloud login -a cloud.ibm.com
Then, you should follow the instructions to target resource group, organisation and space.
All feedbacks, requests and helps for making this image better are welcomed.