Docker denemasyon
Build the images
docker-compose build .
Run the containers
docker-compose up
This runs Docker in the foreground so if you'd like to run in the background (like running with nohup
) simply specify -d
.
docker-compose up -d
We can monitor our local Docker installation using Portainer. We already include it in our docker-compose.yml
so it'll be online once you up
the images using docker-compose, but if you wish to install and run it manually see the section below.
docker run -d -p 9000:9000 portainer/portainer
docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer
Note: Not specifying -v /var/run/docker.sock:/var/run/docker.sock
might cause Portainer UI to not work
docker run -d -p 9000:9000 portainer/portainer:windows