Docker and CentOS 7 (Part II)21 Nov 2017
By default the CentOS 7 installer will create the XFS file system during OS installation. The XFS file systems must be created with the
-n ftype=1 option enabled for use as an overlay. If no there is a problem cause to change it you have to reformat the file system with correct settings. The newer CentOS installers do it with
ftype=1 option enabled.
To check the settings on your file system is possible do by:
If you get something like this:
You have a problem with docker installation.
Also Docker may inform you about by this command:
There are different ways to overcome this problem. Format the main disk wasn’t option for me. My way was to create
thinpool as a part of LVM on other hard drive. Also it is a recommended way to use Docker with production servers to achieve better speed. Lets have a look how.
I have created the
thinpool partition on separate hard drive. All manipulations MUST be issued by root. So, be careful with your data. Backup important data first.
- First of all - stop Docker:
- Format the partition (you can use
fdiskwhat you prefer):
Be careful with formatting! You may damage your data!
*NOTE: Your paths may be different on your system!
- Lets show to
kernelsome changes by this:
- Create the Physical Volume by:
- Create the Volume Group by:
- Check Volume Group if everything correct by:
- Create a Logical Volume by:
- Check Logical Volume if everything correct by:
The next step is change the Docker configuration.
- I have removed the Docker files by this:
- Next, create the
daemon.jsonfile by this PATH:
- With such text inside:
- After that start Docker again:
- Now Docker should work without any warnings. Check it by:
- To test if Docker still running use:
If you see
Hello World you passed this quest ;)
Be back soon. Thanks for your time…