Install Portainer for Docker

Scenario:

Install Portainer for Docker for UI for containers

Solution:

  1. Open powershell and run below commands
  2. $ docker volume create portainer_data
    $ docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
    --other optins
    In settings -> General -> Expose daemon on tcp://localhost:2375 without TLS
    netsh interface portproxy add v4tov4 listenaddress=10.0.75.1 listenport=2375 connectaddress=127.0.0.1 connectport=2375
    
    netsh advfirewall firewall add rule name="docker management" dir=in action=allow protocol=TCP localport=2375
    
    --10.0.75.1:2375 to the daemon socket on 127.0.0.1:2375, and the second line adds a pass-through on the firewall for the port 2375 (*)
    
    docker run -d --name portainer -p 9000:9000 -v portainer_data:/data portainer/portainer -H tcp://10.0.75.1:2375
    docker run -d --restart always --name portainer -v portainer_data:/data portainer/portainer -p 9002:9002 portainer/portainer
    
    docker run -d --name portainer -v portainer_data:/data portainer/portainer -p 9000:9000 portainer/portainer
    http://localhost:9000
      2. Navigate to http://localhost:9000

No comments:

Post a Comment

Move Github Sub Repository back to main repo

 -- delete .gitmodules git rm --cached MyProject/Core git commit -m 'Remove myproject_core submodule' rm -rf MyProject/Core git remo...