Commit cefd4dab by Adi Amir

update devopns

parent 82680238
docker special commands & procedures
to kill a docker that refuses to go down normally
-------------------------------------------------
>systemctl restart docker.socket docker.service
>docker -f mcx-external.yml stop orientdb
>docker -f mcx-external.yml rm -f orientdb
login into a running docker shell
---------------------------------
get the container-id by: docker ps
docker exec -it <container-id> sh
create an image from a docker
-----------------------------
get repository url by: docker images
docker save 172.16.1.212:5050/ipgallery/public-safety-ic > psic2.tar
gzip & copy the zipped image file to target machine
load docker image
-----------------
copy the docker image file file to target machine with its yml file.
goto the docker file directory
docker load --input <docker-file-name>
check with docker images that it is installed correctly
delete a docker image
---------------------
get the repositoy-url by: docker images
docker rmi <repositoy url>
show logs
---------
docker-compose -f {yml file} logs
\ No newline at end of file
......@@ -30,7 +30,8 @@ the diectory should comtaon a link "keys -> ../etc/letsencrypt/live/safeyme.com/
if not - create it manually as follow:
>cd /opt/mcz/config-letsencrypt
>mkdir letsencrypt under
>mkdir letsencrypt
>cd letsencrypt
>ln -s ../etc/letsencrypt/live/ipgallery-mcz.com keys
>chown -R 911:911 letsencrypt
......
......@@ -26,4 +26,7 @@ useful commands:
================
IMPORT DATABASE /orientdb/backup/MCX-72-PARTIAL-SERVICES-ALERTS.gz -merge=true
EXPORT DATABASE /orientdb/backup/MCX-72-PARTIAL-SERVICES-ALERTS.gz -excludeAll -includeClass="Service Alert"
\ No newline at end of file
EXPORT DATABASE /orientdb/backup/MCX-72-PARTIAL-SERVICES-ALERTS.gz -excludeAll -includeClass="Service Alert"
connect to server:
CONNECT remote:localhost root giptmgrr
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment