# - - # # - - # # - Install docker on Ubuntu Server - # # - - # # - Very important - # # - - # # - Add your user to the docker group so you don't have to run it as root - # # - You have to logout and login again so the docker group has effect - # sudo usermod -aG docker is_derayo; exit uSH / uSO # - Logout & login again - # # - - # # - Install and configure Portainer - # docker pull portainer/portainer; # - - # # - Create portainer data folder - # docker volume create portainer_data; # - - # # - Now run Portainer using the simple docker command below - # sudo docker run -d -p 9000:9000 --restart always --name portainer -v \ /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer; sudo docker run -d -p 9000:9000 --restart always --name portainer -v \ /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer; # - - # # - Portainer is now running as a container, check it using the docker ps command - # docker ps; CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 8583a790c6fd portainer/portainer "/portainer" 32 minutes ago Up 32 minutes 0.0.0.0:9000->9000/tcp portainer docker ps -a; CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 8583a790c6fd portainer/portainer "/portainer" 33 minutes ago Up 33 minutes 0.0.0.0:9000->9000/tcp portainer Open your web browser and type the server IP address with port 9000. http://192.168.1.200:9000 # - - # # - First time running portainer - # Username admin Pasword Admini22 Confirm password # - - # # - Select local - # Local Connect Local up # - - # # - Deploy New App Container - # Click the 'App Template' menu. Choose the application 'Ghost' blog as a Docker Container. Container name 'ghost-blog' Click 'Show advanced options' Host 8181 Click 'Deploy the container' On browser type the server IP address 192.168.1.200:8181 http://192.168.1.200:8181