Why do I receive the error "unable to configure the Docker daemon with file /etc/docker/daemon.json: the following directives are specified both as a flag and in the configuration file..." while installing MATLAB Online Server?

11 views (last 30 days)
Why do I receive the following error while installing MATLAB Online Server?
unable to configure the Docker daemon with file /etc/docker/daemon.json: the following directives are specified both as a flag and in the configuration file: exec-opts: (from flag: [native.cgroupdriver=systemd], from file: [native.cgroupdriver=systemd]), log-driver: (from flag: journald, from file: json-file), storage-driver: (from flag: overlay2, from file: overlay2)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 24 Feb 2023
By default, the Docker daemon is configured using the properties in the file /etc/docker/daemon.json, and the bootstrap-node command overwrites any customization. Unless bootstrap-node is executed with the flag –preserve-docker-config, bootstrap node creates or overwrites /etc/docker/daemon.json. If needed, run the following commands:
sudo ./mosadm merge-kube-config
which: no mosadm in (/sbin:/bin:/usr/sbin:/usr/bin)
Will merge the current config from ~/.kube/config with the one in /etc/kubernetes/admin.conf
mkdir -p /home/$USER/.kube
cp /etc/kubernetes/admin.conf /home/$USER/.kube/config
chmod 600 /home/$USER/.kube/config

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!