Changes

From SME Server
Jump to navigationJump to search
226 bytes added ,  11:55, 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
+
We can run docker directly but the preferred method is to use compose
 
  −
docker ps -a
  −
docker rm <id>
  −
 
  −
docker images
  −
docker rmi <id>
  −
 
  −
We can also use 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
 
  curl -L https://github.com/docker/compose/releases/download/1.29.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
Line 121: Line 123:  
  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