Docker compose start container on boot
I have a docker container, that i need to start on server boot. The docker-compose.yml file i used to create this docker…
I have a docker container, that i need to start on server boot. The docker-compose.yml file i used to create this docker…
When running docker-compose on CentOS 7, i get following error [root@cp03 serverok-rubycms]# docker-compose up docker-compose: error while loading shared libraries: libz.so.1: failed…
Create a folder and change to the folder mkdir python-flask cd python-flask Create file vi Dockerfile Add following content FROM python:2.7-slim WORKDIR…
Login to gcloud with gcloud auth login Set default region gcloud config set compute/zone us-central1-a To create a cluser, run gcloud container…
To set a docker container to start on system reboot, run docker update –restart=unless-stopped CONTAINER_ID Replace CONTAINER_ID with actual ID of your…
Docker Nginx Proxy allow you to run multiple docker containers on same server behind nginx proxy. This is done using https://github.com/jwilder/nginx-proxy To…
Build a docker container with Apache docker build command is used to create a docker image from Dockerfile. To create an image,…
To install docker on Ubuntu 16.04, run wget -qO- https://get.docker.com/ | sh To run docker commands as your user, run usermod -aG…
docker search command allows you to search for images in docker hub. Example root@ok:~# docker search nginx NAME DESCRIPTION STARS OFFICIAL AUTOMATED…
docker login command allows you to login to docker.com. You need to login to docker before you can upload your own images…
Portainer is a web based UI for managing docker. https://portainer.io You can run it with command Now login to portainer with url…