I've used lots of buckets as pots, with random
local soil (commercial potting soil isn't available within thousands of miles from where I am). I don't always have success but I certainly don't know if that's my soil, or my occasional watering lapses in this intensely hot dry sun, or what.
I use a hot nail to make lots of small holes so not too much soil comes out. It makes perfect little round holes. A collar of melted plastic rises on up on the side you push from, so it makes a smoother finish if you push the hot nail from the inside of the
bucket. I balance two long nails or spikes on the gas burner with all the windows and doors open and a good cross breeze, and try to hold my breath to avoid the plastic fumes. It doesn't seem very safe, fume-wise, I'll admit.