In a recent work (Antonov et al., Physical Review Letters 123, 243903 (2019)), it was shown that it is possible to amplify a train of attosecond pulses, which are produced from the radiation of high harmonics of the infrared field of the fundamental frequency, in the active medium of a plasma-based X-ray laser modulated by a replica of the infrared field of the same frequency. In this paper, we show that much higher amplification can be achieved using the second harmonic of the fundamental frequency for modulating of a hydrogen-like active medium. The physical reason for such enhanced amplification is the possibility to use all (even and odd) sidebands induced in the gain spectrum in the case of the modulating field of the doubled fundamental frequency, while only one set of sidebands (either even or odd) could participate in amplification in the case of the modulating field of the fundamental frequency due to the fact that the spectral components of the high-harmonic field are separated by twice the fundamental frequency. Using the plasma of hydrogen-like C5+ ions with an inverted transition wavelength of 3.38 nm in the water window as an example, it is shown that the use of a modulating field at a doubled fundamental frequency makes it possible to increase the intensity of amplified attosecond pulses by an order of magnitude in comparison with the previously studied case of a fundamental frequency modulating field.