Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Piotr Gankiewicz
    @spetz
    docker network create ns
    docker network connect ns nanoservice-1
    docker network connect ns next-nanoservice
    Piotr Gankiewicz
    @spetz
    Piotr Gankiewicz
    @spetz
    version: '3.5'
    
    services:
      nanoservice-1:
        image: nanoservice
        container_name: nanoservice-1
        ports:
          - 5050:5000
        networks:
          - nanoservice-network
    
      next-nanoservice:
        image: nanoservice
        container_name: next-nanoservice
        networks:
          - nanoservice-network
    
    networks:
      nanoservice-network:
        name: ns
    dawiduniec
    @dawiduniec

    nano /etc/ssh/sshd_config
    odkomentować Port 80

    service sshd restart

    sudo su jako pierwsze
    Piotr Gankiewicz
    @spetz

    DOCKER:

    sudo apt update

    sudo apt install apt-transport-https ca-certificates curl software-properties-common

    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

    sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"

    sudo apt update

    sudo apt install docker-ce

    DOCKER COMPOSE:

    sudo curl -L https://github.com/docker/compose/releases/download/1.24.1/docker-compose-`uname -s-uname -m` -o /usr/local/bin/docker-compose

    sudo chmod +x /usr/local/bin/docker-compose

    Piotr Gankiewicz
    @spetz
    sudo curl -L https://github.com/docker/compose/releases/download/1.24.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
    sudo su
    docker run hello-world
    Piotr Gankiewicz
    @spetz
    docker volume create portainer_data
    docker run -d -p 9000:9000 -p 8000:8000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
    Piotr Gankiewicz
    @spetz
    image.png
    jezeli 9000 nie dziala
    docker rm -f CONTAINER_ID
    
    
    docker run -d -p 443:9000 -p 8000:8000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
    Piotr Gankiewicz
    @spetz
    spetz/nanoservice
    Piotr Gankiewicz
    @spetz
    docker swarm init
    docker swarm init --advertise-addr IP
    curl -L https://downloads.portainer.io/portainer-agent-stack.yml -o portainer-agent-stack.yml
    docker stack deploy --compose-file=portainer-agent-stack.yml portainer
    Piotr Gankiewicz
    @spetz
    version: '3.5'
    
    services:
      nanoservice-1:
        image: spetz/nanoservice
        container_name: nanoservice-1
        depends_on:
          - next-nanoservice
        ports:
          - 5050:5000
        networks:
          - nanoservice-network
    
      next-nanoservice:
        image: spetz/nanoservice
        container_name: next-nanoservice
        networks:
          - nanoservice-network
    
    networks:
      nanoservice-network:
        name: ns
    Piotr Gankiewicz
    @spetz
    kubectl apply -f pod.yml
    kubectl get pod
    kubectl port-forward nanoservice-pod 5000:5000
    kubectl delete pod nanoservice-pod
    Kubernetes.pdf
    Dariusz Pawlukiewicz
    @GooRiOn
    sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher
    Piotr Gankiewicz
    @spetz
    Dariusz Pawlukiewicz
    @GooRiOn
    13.80.0.216
    Piotr Gankiewicz
    @spetz
    Dariusz Pawlukiewicz
    @GooRiOn