Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with docker version 20.10 --> Error in userdata and terraform apply #9

Open
masoodazizi opened this issue May 16, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@masoodazizi
Copy link

Because of a possible issue with docker version 20.10, the userdata of the instances fail running the kubeadm command, because the environment variable HOME is not defined.

I have fixed the issue in the forked project by the following code snippet in the userdata of both master and worker nodes before kubeadm command:

  # Fix for the issue with docker v20.10 and HOME env var
  DOCKER_VER=`docker --version | awk '{print $3}' | awk -F'.' '{print $1 $2}'`
  if [[ $${DOCKER_VER} = '2010' ]]; then
    echo 'Docker Version 20.10'
    echo "Fixing issue with manual definition of HOME env var"
    export HOME=/root
  fi
@weibeld weibeld added the bug Something isn't working label Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants