In some cases, we need to pull some docker image through our custom proxy server.
But the HTTPS_PROXY and HTTP_PROXY in current login terminal will not be useful for the docker pull command. The proxychains-ng tool is the same situation.
This is because docker is divided into dockerd and client. The docker pull command is executed by dockerd service. So we need make sure dockerd use proxy server.
The Docker daemon uses the HTTP_PROXY, HTTPS_PROXY, and NO_PROXY environmental variables in its start-up environment to configure HTTP or HTTPS proxy behavior. You cannot configure these environment variables using the daemon.json file.
// This block is a little weird. We want to enforce that only elected witnesses can include the transaction, but // we do not want to prevent the transaction from propogating on the p2p network. Because we do not know what type of // witness will have produced the including block when the tx is broadcast, we need to disregard this assertion when the tx // is propogating, but require it when applying the block. if( !_db.is_pending_tx() ) { const auto& current_witness = _db.get_witness( gpo.current_witness ); FC_ASSERT( current_witness.schedule == witness_object::elected, "Subsidized accounts can only be claimed by elected witnesses. current_witness:${w} witness_type:${t}", ("w",current_witness.owner)("t",current_witness.schedule) );
FC_ASSERT( current_witness.available_witness_account_subsidies >= STEEM_ACCOUNT_SUBSIDY_PRECISION, "Witness ${w} does not have enough subsidized accounts to claim", ("w", current_witness.owner) );