Chaincode docker devmode cli error - docker

I am using the tutorial Chaincode for Developers and I am getting an error while running "docker-compose-simple.yaml" file.
Does anyone know how to solve this issue?

Have you checked the instructions mentioned in Hyperledger Fabric Samples like
If you are using Docker for Mac, you will need to use a location under /Users, /Volumes, /private, or /tmp. To use a different location, please consult the Docker documentation for file sharing.
I had some problem when I was using different directory.

The error occurs because you are using the latest version of Fabric (I assume that because you are reading the latest fabric.docs).
Clone the 1.0.0-beta version, follow the instructions on 1.0.0-beta fabric docs and you'll be ok.

Related

ERROR: Couldn't connect to Docker daemon at http://0.0.0.0:2375 - is it running?

I am watching a course on Hyperledger Composer development online. I installed all the required prerequisites, docker, docker-compose, nodejs, golang. After cloning the fabric-samples repository from github. There is a file called byfn.sh inside a folder called first-network. On running the command ./byfn.sh up, it's giving the following error:
If, someone has experience working on it, please help. Any help would be appreciated. Thank you.
I think the first thing you should do is stop looking at or trying to use Hyperledger Composer. It is end of life now and some of it's components will have problems even if you install the exact required versions (for example the rest server fails to launch now on node 8 but changing to a newer version of node may break other parts of Composer).
As you had planned to use it with hyperledger fabric I would suggest that you just invest your time in Hyperledger fabric, see https://hyperledger-fabric.readthedocs.io/en/latest/
Regarding your problem with docker, I suspect you tried to install docker through the apt command in your wsl window ? I'm guessing that you are using WSL2, but if you are using WSL1 then docker will never work in a WSL1 environment. If it was WSL2 then the docker daemon doesn't automatically start in that environment you need to start it yourself first. I think the command is service docker start. The important thing here is to make sure you are using WSL2 and not WSL1 (see hyperledger fabric link later which provides guidance on making sure you are using WSL2).
An alternative to installing docker into WSL2 directly would be to install Docker Desktop for Windows and follow the hyperledger fabric instructions here https://hyperledger-fabric.readthedocs.io/en/latest/prereqs.html#wsl2

Unable to download the Jenkins plugins running on Google Cloud Platform

I'm running the Jenkins as a Docker container on a Virtual Machine on Google Cloud Platform. On the very first screen of setup, I can see that a lot of plugins did not install in my Jenkins server?
Please let me know how to resolve this issue? Is it something due to with the security on the cloud by default which restricts downloading of plugins?
Refer following link for screenshot:-
https://storage.googleapis.com/mydockerissues/Jenkins%20Plugins%20Issue.PNG
Cheers
Something similar happened to me when running Jenkins on Docker on my local machine. To get everything to install I had to keep retrying. It took several retries but eventually I got everything installed.
I'm not sure why this is the case. Maybe it fails downloads whose dependencies aren't installed yet?

Using Github Project in Docker

I'm working on face detection project and trying to use this github project.
But the issue is I'm using windows system and have difficulties installing modules used in this project. I can use a VM, install linux and use it. But can I use docker to call the project from github and work with it? If yes, how to do it? I tried to read about it, but hardly got any materials.
Thank you!

fabric composer on Windows machine

I tried setting up playground using
https://fabric-composer.github.io/tutorials/getting-started-playground.html
I followed the docker steps everything started OK, was able to access Fabric Composer Playground by clicking on this link: http://localhost:8080
But now what??? I tried to upload a sample model file but it shows error.
How do I try this out. Do I have install Ubuntu on my windows machine to really be able to try out fabric composer?? Pleas help
You can install and run the fabric composer locally on linux only. For that you can use VMWare and install ubuntu on it.
And then follow the installation steps here.
If you don't want to do so, then alternatively you can use the online composer playground and can export(download) your .bna file whenever you want.
Hope this helps you!

Forge AWS Laravel Install

Has anybody encountered any issues using forge with AWS for a laravel project?
I've recently followed instructions but I've encountered various errors too many to comment.
After opening a SSH connection to my AWS EC2 instance I've then run the command provided by Taylor on Forge but I get cannot find folder errors etc?
I got a lot of problems with Forge + AWS.
Some of them were:
You should specify correct snapshot for AWS instance - use ubuntu, not Amazon Linux.
You should open SSH for whole world (or get Forge IP address)
Other, a LOT of problems :)
But in the End, I managed to install it.

Resources