User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
docker_notes [2026/01/23 08:53] – admindocker_notes [2026/01/23 08:57] (current) – admin
Line 100: Line 100:
  
 ===== Docker Swarm ===== ===== Docker Swarm =====
 +
 +==== przyznawanie statycznego adresu ip przy tworzeniu noda ====
 +  /etc/network/interfaces
 +
 +  auto enp0s3
 +  iface enp0s3 inet dhcp
 +  auto enp0s8
 +  iface enp0s8 inet static
 +  address 192.168.100.1
 +  netmask 255.255.255.0
 +
 +potem w konsoli
 +  systemctl restart networking
  
 ==== Tworzenie do swarma ==== ==== Tworzenie do swarma ====
Line 114: Line 127:
   $ docker node promote <id>   $ docker node promote <id>
  
-# usuwanie noda+==== usuwanie noda ==== 
   $ docker node rm <id>   $ docker node rm <id>
   $ docker swarm leave (z poziomu node)   $ docker swarm leave (z poziomu node)
  
-# serwisy (cos takiego jak docker run)+==== serwisy (cos takiego jak docker run) ====
   $ docker service create --name <name> debian sleep inf   $ docker service create --name <name> debian sleep inf
   $ docker exec -it <id> bash   $ docker exec -it <id> bash

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information