There are some dwarf and miniature varieties of vegetables, such as Thumbelina carrots or other baby vegetables that work particularly well in small confines.
When it comes to information about growing plants from kitchen scraps, the internet can be an unreliable source. Questionable online tips often lead experimental repurposers to abandon their efforts prematurely.