Skip to content
Snippets Groups Projects
Commit 6790ddb0 authored by Raphael Storm Larsen's avatar Raphael Storm Larsen
Browse files

Fiex initworker docker installation

parent be379d78
No related branches found
No related tags found
No related merge requests found
...@@ -12,18 +12,12 @@ sudo apt-get -y install \ ...@@ -12,18 +12,12 @@ sudo apt-get -y install \
git \ git \
gnupg \ gnupg \
lsb-release lsb-release
apt-get -y update
# Add Docker’s official GPG key:
apt-get -y update apt-get -y update
mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
# Use the following command to set up the repository: # Use the following command to set up the repository:
echo \ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null apt-get -y update
# Fix potentially broken mask # Fix potentially broken mask
chmod a+r /etc/apt/keyrings/docker.gpg chmod a+r /etc/apt/keyrings/docker.gpg
...@@ -35,9 +29,6 @@ apt-get -y update ...@@ -35,9 +29,6 @@ apt-get -y update
# Install Docker Engine, containerd, and Docker Compose. # Install Docker Engine, containerd, and Docker Compose.
#sudo apt-get -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin #sudo apt-get -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin
# Add to docker swarm cluster as worker
#docker swarm join --token SWMTKN-1-2b8s5pumm6c5liipvnp0gyv613hm9u5r6c567xjirtce1ng8bu-0kyd30qzbbnuvxi4p8c724ft8 192.168.133.95:2377
# Fix potentially broken docker build # Fix potentially broken docker build
echo "{ \"insecure-registries\" : [\"192.168.128.23:5000\"] }" > /etc/docker/daemon.json echo "{ \"insecure-registries\" : [\"192.168.128.23:5000\"] }" > /etc/docker/daemon.json
...@@ -46,6 +37,9 @@ systemctl disable docker ...@@ -46,6 +37,9 @@ systemctl disable docker
systemctl disable docker.service systemctl disable docker.service
systemctl disable docker.socket systemctl disable docker.socket
# Add to docker swarm cluster as worker
#docker swarm join --token SWMTKN-1-2b8s5pumm6c5liipvnp0gyv613hm9u5r6c567xjirtce1ng8bu-0kyd30qzbbnuvxi4p8c724ft8 192.168.133.95:2377
# Sync time using NTP # Sync time using NTP
apt-get install -y ntpdate apt-get install -y ntpdate
ntpdate -b ntp.justervesenet.no ntpdate -b ntp.justervesenet.no
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment