3. Change the name of the image to see that it has to be correct according to the pattern explained in the video.
4. Fix the problem with missing space on a logical volume. Use the below commands to perform a check and solve the problem.
Check which volume is almost full or full
1
df -kTh
list 10 biggest files in a var directory that is a volume with not enough space
1
2
3
du -a /var | sort -n - r | head -n 10# or with -h (human readable format)du -h /var | sort -n - r | head -n 10
Run docker prune command.
The Docker prune command automatically removes the resources not associated with a container. This is a quick way to get rid of old images, containers, volumes, and networks.
1
docker system prune -a -f
Check the result after the cleanup
1
du -hx --max-depth=1 /var
5. Resize the logical volume
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# do the checkpvs
vgs
lvs
# extend the volumelvextend -l +100%FREE /dev/docker-vg/var
# do the checkpvs
vgs
lvs
df -kTh /var
# resize the partitionresize2fs /dev/mapper/docker--vg-var
# do the chekdf -kTh /var
6. Go back to Jenkins and rerun the job
7. See the section of the tutorial to understand difference between docker images.
Understanding difference between Docker images. Node image contains nodejs and npm that allows node command to work.