K as given by johnp was anyway incorrect.
For a welded cap use the formula of johnp taking:
d=inner pipe diameter (cap should be inserted into the cylinder and the weld done on the extra cylinder length projecting beyond the cap, otherwise take the pipe outer diameter)
K=0.33
s=15000 psi (typical for low carbon steel)
If the cap may be welded also on inner side, the thickness could be slightly reduced (down to using K=0.2 if the cylinder wall is thicker than the minimum required) but this doesn't seem very important for such a small cap.
Of course you will require a heavy weld, with an effective depth equal to cap thickness.
Note that for your conditions (high pressure, small diameter) the code is quite conservative, especially for the weld.
prex
motori@xcalcsREMOVE.com
Online tools for structural design