To run Docker as a non-privileged user, consider setting up the
Docker daemon in rootless mode for your user:
dockerd-rootless-setuptool.sh install
Visit https://docs.docker.com/go/rootless/ to learn about rootless mode.
To run the Docker daemon as a fully privileged service, but granting non-root
users access, refer to https://docs.docker.com/go/daemon-access/
WARNING: Access to the remote API on a privileged Docker daemon is equivalent
to root access on the host. Refer to the ‘Docker daemon attack surface’
documentation for details: https://docs.docker.com/go/attack-surface/
Selecting previously unselected package minikube.
(Reading database … 69908 files and directories currently installed.)
Preparing to unpack minikube_latest_amd64.deb …
Unpacking minikube (1.32.0-0) …
Setting up minikube (1.32.0-0) …
minikube start
[실행화면]
😄 minikube v1.32.0 on Ubuntu 22.04 (kvm/amd64)
✨ Automatically selected the docker driver. Other choices: none, ssh
🛑 The “docker” driver should not be used with root privileges. If you wish to continue as root, use –force.
💡 If you are running minikube within a VM, consider using –driver=none:
📘 https://minikube.sigs.k8s.io/docs/reference/drivers/none/
❌ Exiting due to DRV_AS_ROOT: The “docker” driver should not be used with root privileges.
해당 error는 docker를 root권한으로 사용하려 했을 경우 나옵니다.
따라서 전용 사용자 계정을 추가로 생성해줘야 합니다.
2️⃣ 사용자 계정 생성
useradd -m -d /home/smileserv -s /bin/bash smileserv // /home/smilserv가 home 디렉터리인 smileserv 사용자 생성
passwd smileserv // smileserv 비밀번호 설정
usermod -aG sudo smileserv // smileserv 계정 sudo 권한
usermod -aG docker smileserv // smileserv 계정 docker 권한
su smileserv
3️⃣ MiniKube 설치
Minikube start
[실행화면]
smileserv@minikube:~$ minikube start
😄 minikube v1.32.0 on Ubuntu 22.04 (kvm/amd64)
✨ Automatically selected the docker driver
📌 Using Docker driver with root privileges
👍 Starting control plane node minikube in cluster minikube
🚜 Pulling base image …
💾 Downloading Kubernetes v1.28.3 preload …
> preloaded-images-k8s-v18-v1…: 403.35 MiB / 403.35 MiB 100.00% 29.60 M
> gcr.io/k8s-minikube/kicbase…: 453.90 MiB / 453.90 MiB 100.00% 29.23 M
🔥 Creating docker container (CPUs=2, Memory=2200MB) …
🐳 Preparing Kubernetes v1.28.3 on Docker 24.0.7 …
▪ Generating certificates and keys …
▪ Booting up control plane …
▪ Configuring RBAC rules …
🔗 Configuring bridge CNI (Container Networking Interface) …
▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🔎 Verifying Kubernetes components…
🌟 Enabled addons: storage-provisioner, default-storageclass
💡 kubectl not found. If you need it, try: ‘minikube kubectl — get pods -A’
🏄 Done! kubectl is now configured to use “minikube” cluster and “default” namespace by default
When you login first time using a Social Login button, we collect your account public profile information shared by Social Login provider, based on your privacy settings. We also get your email address to automatically create an account for you in our website. Once your account is created, you'll be logged-in to this account.
DisagreeAgree
I allow to create an account
When you login first time using a Social Login button, we collect your account public profile information shared by Social Login provider, based on your privacy settings. We also get your email address to automatically create an account for you in our website. Once your account is created, you'll be logged-in to this account.