Certain forms of ordering of hydrogen molecules have been discovered during their alternate inflow into a carbon nanotube and outflow from it, and also during their further withdrawal, confinement, and accumulation in the nanotube with a lid in the form of half a fullerene molecule at one of its ends. It is shown that hydrogen forms a peculiar chain of molecules that extends along the nanotube axis. In this case, the molecules also turn out to be oriented along the axis. Estimates of the nanotube filling and the increase in the nanotube lengths and diameters are given.