We explore the feasibility of a fiber clock, a compact high-precision optical lattice atomic clock based on atoms trapped inside hollow core optical fiber. Such setup offers an intriguing potential for both substantially increased number of interrogated atoms and miniaturization. We evaluate the sensitivity of the 1 S0-3 P0 clock transition in Hg and other divalent atoms to the fiber inner core surface at non-zero temperatures. The Casimir-Polder interaction induced 1 S0-3 P0 transition frequency shift is calculated for the atom inside the hollow capillary as a function of atomic position, capillary material, and geometric parameters. For Hg atoms on the axis of a silica capillary with inner radius ≥ 15 µm and optimally chosen thickness d ∼ 1 µm, the atom-surface interaction induced 1 S0-3 P0 clock transition frequency shift can be kept on the level δν/νHg ∼ 10 −19 . We also estimate the atom loss and heating due to the collisions with the buffer gas, lattice intensity noise induced heating, spontaneous photon scattering, and residual birefringence induced frequency shifts.