While not a perfect solution, you can use the dfx ledger create-canister
command to create an empty canister (which will be created on a random subnet), check on ic.rocks or the ICA dashboard to see where the canister has been created, and if it was created on a desired subnet, deploy a cycles wallet to that canister using dfx identity --network ic deploy-wallet <canister id>
. Once the cycles wallet is deployed, any canisters created from that cycles wallet will be on the same subnet. I’ve done this and it works! More info on the create-canister
command here: dfx ledger :: Internet Computer
6 Likes