How to install and run custom panels
I have forked gytub repo and dashboards and I am trying to create a Dockerfile to run a dashboard in a Docker container.
My fork: https://github.com/adityai/dashboards
I am not familiar with node and npm. The Docker image was built successfully.
https://hub.docker.com/r/adityai/dashboards/
I'm not sure if I am using the correct command to start the dashboard app (npm start) because when I try to start the docker container locally, it won't start. He immediately exits.
docker run -d -p 3000: 3000 --name = personal shield for adityai business cards / dashboards: gh-pages
source to share
Just like you: cloning a repo
$ git clone https://github.com/adityai/dashboards.git
This repo has a Dockerfile (which is a file that describes how to set up your docker image). You can create docker image from file
$ cd dashboards
$ docker build -t my-dashboard .
Docker file starts with httpd base image (apache). After building your dockerfile, you can see your image:
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
my-dashboard latest 81a5607c03ba About a minute ago 204 MB
And you can instantiate the container from this image. I have to admit that there is no command information docker run
on the github page or no docker page .
You can now launch the image. I saw that port 80 was open in the dockerfile, so I mapped container port 80 to port 80 of my local machine.
$ docker run -d -p 80:80 my-dashboard
source to share