Not a good idea for containers. You should use something that allows good drainage - peat moss or coco coir, as Marturo comments, and add compost to the container mix (~10%). Especially in hot climates, pure compost as container mix will compact and can become as hard as brick.