For a cone to fit perfectly inside the can it needs to have the same base circle size and same height.
Work out the height of the can first:



This means your cone can have a max height of 4.77 and the same base circle (diameter of 2 / radius 1).
Work out the volume of cone:



The volume of your cone which fits perfectly inside the can is 5.