Questions tagged [docker]
For questions regarding using the Docker virtualisation tool.
91 questions
1
vote
0
answers
42
views
Geth and lighthouse - connection problem
I have docker-compose.yml file:
services:
geth:
container_name: geth
volumes:
- /mnt/external/geth:/root/.ethereum
ports:
- 8551:8551
- ...
0
votes
0
answers
50
views
Private Networks via Kurtosis data leak
I deployed a new blockchain on a VM as in example from: https://geth.ethereum.org/docs/fundamentals/kurtosis#prerequisites
It works as I would but there are still some issues. I'm not a great sysadmin ...
1
vote
0
answers
10
views
Unable to Install Wormhole's NTT CLI
Unable to install Wormhole's new NTT CLI. I'm running this on Ubuntu. I have Bun installed, but still getting the error message. Should I update the node version to fix this?
Here is the CLI:
curl -...
1
vote
0
answers
24
views
How can I persist the chaindata of my ethereum private network?
I have build a ehtereum private network with docker and it could run normaly. But if I try to persist the chaindata by using volumes, the node will connect mainnet, instead of my private network.
Here ...
0
votes
1
answer
16
views
slither: command not found
I was attempting to use Slither and I followed this guide: https://hackenproof.com/blog/for-hackers/how-to-use-slither-for-auditing-smart-contracts
My Docker installation is confirmed to work but when ...
1
vote
1
answer
13
views
I have recovered funds, but have no idea how to move them using docker etc
i have managed to retrieve the funds to my wallet that was sent to the wrong chain - the funds are there but now I am unable to move them. So I have downloaded docker and tried my best many times to ...
0
votes
0
answers
20
views
Docker compiled bytecode not equal to Remix deployed bytecode
Any ideas to what I can do to fix this?
I am using Go-Ethereum to compile a deploy a smart contract and the deployment just hangs.
The contract compiles and deploys using Remix on Sepolia.
The byte ...
0
votes
1
answer
82
views
How can I run multiple nodes(Full node, geth client) in single PC in public network?
As I know, ethereum network uses 30303 port for UDP/TCP and use 9000 or 8551 for P2P. But, every single public IP has single 30303 port and 8551 port.
Can I run multiple nodes (full, light whatever) ...
0
votes
0
answers
5
views
Issue with webdriver installation
I am using this to install chrome webdriver but it stopped working.
command for dockerfile
RUN apt-get update && \
apt-get install -y gnupg wget curl unzip --no-install-recommends &&...
1
vote
0
answers
21
views
Running a local eth network
I trying to run a local eth network because the online faucets are too slow for us
But I am struggling to find a good docker-compose example online to do so
There are a few but all of them dont run ...
0
votes
0
answers
207
views
How to import code into a contract
I have a contract that needs to be compiled with solc so I can get Go bindings.
$ tree
.
├── openzeppelin
├── Swap.sol
└── @uniswap
pragma solidity >0.7.0 < 0.9.0;
import { IUniswapV2Pair } ...
1
vote
1
answer
69
views
problem on running Chainlink node
I am currently running a linux aarch64 nvidia jetson tx2 machine. I try to run my chainlink node with docker using this docs here.
In the line of cd ~/.chainlink-nvidia && sudo docker run --...
0
votes
1
answer
48
views
How to persist data (the chain itself) in a Docker private blockchain?
I'm creating a Docker private blockcain from here:
https://medium.com/scb-digital/running-a-private-ethereum-blockchain-using-docker-589c8e6a4fe8
But I'm afraid to lost all my data if I need to delete/...
0
votes
1
answer
149
views
Select solc version
I am exploring the best way to switch solc versions on Ubuntu and I looked at the Docker solution. The Docker --help command is of no help, it does not show an option for listing possible solc ...
1
vote
1
answer
309
views
Error at build on Dockerfile image build in hardhat project
I have my hardhat project that builds and run fine using yarn.
But when I try to execute "yarn build" from a Dockerfile during the image build process I have the following error:
=> ERROR ...
0
votes
1
answer
164
views
Error: Expected string literal (path), "*" or alias list
I m currently working on smart contracts and i m trying test the contracts i wrote. I am using smartbugs tool. So far, i have executed the following commands in the powershell,
git clone https://...
1
vote
1
answer
277
views
Does the graph-node re-sync all blocks every time it gets restarted?
I am running an EC2 instance with graph-node, using docker.
Let's assume that I have a list of smart contracts that I want my subgraph to track and, at some point, that list gets updated; so I have to ...
0
votes
1
answer
87
views
Can i use oyente Tool on windows?
I am currently working with smart contracts. I want to perform security analysis on the smart contracts I developed. I tried using Oyente Tool and Docker in my Windows 10 Home system. But I can only ...
3
votes
1
answer
582
views
Scaffold-eth's graph_node docker container dies after a few seconds, complaining about invalid collation setting
I have installed and run scaffold-eth on linux but The Graph node's docker container dies after a few seconds with this output:
graph-node_1 | Mar 09 17:30:46.164 CRIT Database does not use C locale. ...
0
votes
1
answer
77
views
Is there a way to enable logs for graph commands?
I am running the following version of graph-cli: @graphprotocol/graph-cli/0.42.4 linux-x64 node-v18.15.0
Is there a way to setup a log or have more details after each command gets executed?
0
votes
1
answer
64
views
Deploy of subgraph fails in Amazon EC2 Instance
I want to run graph-node (The Graph) in an Amazon EC2 Instance.
I have setup everything with docker-compose and the 3 containers (graph-node, ipfs and postgres) are running smoothly.
I have also setup ...
0
votes
1
answer
82
views
Chainlink Docker Failing to Create /chainlink/ directory
I am running into this issue "Error creating root directory \"/chainlink\": chmod /chainlink: operation not permitted" when running the Chainlink node docker.
latestimage=$(curl -s ...
0
votes
1
answer
192
views
Why does my geth node never start syncing?
I'm running a geth node using Docker. I am also running a service that enables authenticated access to port 8545. This is a part of my docker-compose file that is relevant to the geth node:
version: &...
1
vote
2
answers
622
views
Access blocked by CORS policy
I have an Ubuntu machine running two docker nodes. When I try to access nodes from my web based application, installed on the same machine I keep getting the following error :
web3.min.js:2 Access to ...
1
vote
1
answer
534
views
MEV-BOOST: Cannot connect to Builder
I am trying to experiment with mev-boost on goerli testnet but I am getting connection error in my beacon node log.
MEV boost command:
sudo docker run flashbots/mev-boost -goerli -relay-check -relays=...
0
votes
1
answer
1k
views
Minimum system requirements for smart contract software development
Can I ask here what are the minimum system requirements to write smart contracts, and do some research on blockchains & cryptocurrency in general?
-For Dell is Vostro, say 3510, enough or I should ...
0
votes
2
answers
1k
views
Best practice to store private key for containerized apps in the cloud
I am a crypto investor. I am staking a coin but the smart contract requires the user to claim and restake the rewards by transacting a smart contract function every 24 hours. Currently I am doing it ...
1
vote
1
answer
5k
views
How can I create a local USDT testnet?
I want to create a local testnet on which I can move USDT (test coins) between wallets.
I managed to create a ETH testnet inside Docker. In the docker-compose.yml below, the lines between # ETH ...
0
votes
2
answers
777
views
How to generate Natspec docs using version 0.6.x of the Solidity compiler
I'm trying to run solc --userdoc --devdoc myContract.sol to generate natspec. However, the compiler complains that the contract has a different pragma-version. In fact the contract pragma is at ^0.6....
1
vote
0
answers
149
views
Saddle.Exchange Docker image will not open
Please forgive me. I'm wildly inexperienced. This my first attempt at forking a project. This is for educational purposes.
I've successfully deployed the saddle front end using vercel, and now I'm ...
2
votes
1
answer
1k
views
TheGraph is not connecting to IPFS locally
I have a Graph local node set up using this tutorial. When I am trying to deploy it, its not going through with the following error message:
Add file to IPFS build/schema.graphql
⠋ Upload subgraph to ...
1
vote
1
answer
606
views
Ganache gives error when I try to mint token to wallet after contract deploy
i use: python 3.5, docker, ganache (image image: trufflesuite/ganache-cli:v6.9.1)
what do i do: (simplified example) I have two container: container with ganache and container with general logic. ...
0
votes
1
answer
1k
views
How do I efficiently install truffle and ganache-cli in a docker container?
Say I want to run a container with ganache-cli and truffle globally installed for dev purposes.
I have this first attempt Dockerfile
FROM node:15-alpine
RUN mkdir -p /home/node/app
WORKDIR /home/...
1
vote
0
answers
238
views
ERROR: null value in column "next_nonce" violates not-null constraint (SQLSTATE 23502)
I am using this command to run my chainlink node:
docker run --name chainlink-kovan --network host -p 6688:6688 -v ~/.chainlink-kovan:/chainlink -it --env-file=.env smartcontract/chainlink:0.10.3 ...
2
votes
1
answer
505
views
Chainlink node not initializing, failed to initialize ORM: initializeORM#NewORM: unable to init DB: unable to open postgresql
I am trying to setup a chainlink node on my machine. After setting all the .env variables, I am running the docker command to start the node,
cd ~/.chainlink-kovan && docker run -p 6688:6688 -...
1
vote
0
answers
210
views
Maian Tool Repository on Docker: How to store contract retrieved from etherscan.io and what is ‘test.sol’
I am in the MAIAN tool repository on docker. The link at :
MAIAN Tool GitHub Link
They provided details of how to execute the MAIAN tool from docker. I am in the MAIAN tool repository on docker.
They ...
0
votes
0
answers
204
views
Quorum nodes run fine with docker-compose, but crash when deployed on kubernetes
Following the steps outlined here, I created a basic Quorum network with 4 nodes and IBFT consensus. I then created a docker image for each of the nodes, copying the contents of each node's directory ...
1
vote
1
answer
508
views
Unable to deploy contract on Besu network(docker) using dynamic IP
I am stuck with a weird situation. I create a local Ethereum network with Hyperledger Besu in docker environment. I try to deploy contracts to a rpc node using Truffle(different container in same ...
2
votes
1
answer
212
views
How to connect local ganache node with epirus
I tried apirus to connect to local ganache node.
Ganache node is running on localhost:7545.
git clone https://github.com/blk-io/epirus-free.git
cd epirus-free
docker-compose pull
NODE_ENDPOINT=http:/...
1
vote
1
answer
268
views
Just synced a node, but want to use docker instead, can I moved synced db into container?
I just synced a node using geth fastsync and it took several days.
But I just decided I want to use this computer's resources differently and run my ethereum environment from a docker container
I ...
0
votes
1
answer
657
views
How to open multiple terminals using docker?
Here I am trying to create private ethereum instance using dockerfile. I want to open two terminals and run command1 in terminal1 and execute command2 in terminal2 only when command1 returns true.
...
1
vote
1
answer
391
views
Why admin.addPeer() command did not add parity client for private chain with Docker?
I would like to set up private chain which both geth and parity clients running on the same network.
here is a sample repository with docker-compose file:
https://github.com/user48736353001/devnet
...
1
vote
0
answers
248
views
Parity syncing in archive mode stuck at block 4839206
I am running Parity inside docker in pod in Kubernets on Google Cloud.
The pod is using disk with 2700 GB for storing Ethereum blockchain, and currently
disk has about 2100 GB free.
Unfortunately for ...
2
votes
0
answers
1k
views
No contract code at give address
Its a bit of a long question...
I am using Go to deploy a Smart Contract using the following code:
client, err := ethclient.Dial("http://localhost:8545")
if err != nil {
errorhandler.HandleErr(...
0
votes
1
answer
1k
views
Downloading a specific version of solc within a Docker image
I am working with the release of Solidity v0.4.25 for it works well with py-solc. When running on a local machine the codebase works quite well with 0.4.25. My issue currently is to get the codebase ...
1
vote
1
answer
364
views
Running Openzepplin from docker
I am trying to build a docker image using open zepplin libraries. It works until it has to import the zepellin library, for which it can't seem to find.
Here is what my docker image looks like :
...
1
vote
0
answers
123
views
geth stops syncing
I am running geth via docker docker pull ethereum/client-go. It stops syncing after serval days. After I reboot the docker, it works fine again. This situation happened serval times.
Here is the last ...
1
vote
1
answer
737
views
"truffle test" says "assert.rejects" is not a function even it is Node 10
As per the official documentation, assert.rejects was added since Node v10.0.0.
Also, the node console confirms that:
even though, truffle test throws this error:
TypeError: assert.rejects is ...
5
votes
3
answers
1k
views
How to make a Docker container talk to geth.ipc on local host
from web3 import Web3
web3 = Web3(Web3.IPCProvider("/Ethereum/geth.ipc"))
print(f'IPC connected: {web3.isConnected()}') # want to return True
I have the above script Dockerized and I'm trying to ...
1
vote
1
answer
645
views
Using parity as Web3 provider running from a Docker container
I can't seem to be able to create a web3 (http) provider pointing to a parity node, running from a docker container.
I create a repo which should reproduce the problem.
After running docker-compose ...