Changes

From SME Server
Jump to navigationJump to search
252 bytes added ,  11:57, 27 July 2023
Line 63: Line 63:  
(Note the contrib is still in smetest)
 
(Note the contrib is still in smetest)
    +
====Avoiding conflicts====
   −
Uses config entries
+
docker-compose templates used:
 +
 
 +
smeserver-docker
 +
01version
 +
10HelloWorldTest
 +
 
 +
smeserver-rocketchat
 +
20rocketchat
 +
 
 +
====config entries====
    
  config setprop docker iptables false/true - default false
 
  config setprop docker iptables false/true - default false
Line 89: Line 99:  
  systemctl status docker
 
  systemctl status docker
   −
And test:
+
====Testing====
 
  −
docker run hello-world
  −
 
  −
docker ps -a
  −
docker rm <id>
  −
 
  −
docker images
  −
docker rmi <id>
     −
We can also use docker-compose:
+
We can run docker directly but the preferred method is to use compose
    
  curl -L https://github.com/docker/compose/releases/download/1.29.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
 
  curl -L https://github.com/docker/compose/releases/download/1.29.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
Line 117: Line 119:     
/etc/e-smith/templates-custom/home/e-smith/files/docker/configs/docker-compose.yml
 
/etc/e-smith/templates-custom/home/e-smith/files/docker/configs/docker-compose.yml
 +
 +
To expand the template:
    
  signal-event smeserver-docker-compose-update
 
  signal-event smeserver-docker-compose-update
 
  cd /home/e-smith/files/docker/configs
 
  cd /home/e-smith/files/docker/configs
 
  docker-compose up -d my_hello
 
  docker-compose up -d my_hello
 +
 +
Using plain docker:
 +
 +
docker run hello-world
 +
 +
Other commands:
 +
 +
docker ps -a
 +
docker rm <id>
 +
 +
docker images
 +
docker rmi <id>
    
==Things to do==
 
==Things to do==

Navigation menu