Changeset - e77dd1c56c58
[Not reviewed]
0 1 0
vitalyster - 7 years ago 2018-06-29 16:45:20
vitalyster@gmail.com
Update docker.md
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
documentation/installation/docker.md
Show inline comments
 
@@ -57,25 +57,25 @@ It will start Spectrum 2 and load the configuration files from `/opt/spectrum`.
 

	
 
### Note
 

	
 
If you are using Docker bridge networking, you should configure your XMPP server to listen on the bridge IP address. Some XMPP servers listen only on 127.0.0.1 by default. Check [Prosody](https://prosody.im/doc/components) documentation for example config.  
 

	
 
## Checking the Spectrum 2 logs
 

	
 
To check the Spectrum 2 logs, use following Docker command:
 

	
 
	$ docker logs spectrum2
 

	
 
## Stopping the Spectrum 2
 

	
 
To stop the Spectrum 2 container, use following Docker command:
 

	
 
	$ docker stop spectrum2
 

	
 
## Upgrading the Spectrum 2 container
 

	
 
To upgrade Spectrum 2 container, you at first have to pull the updated Docker image, stop the current container, remove it and start it again using the new version of Docker image. It is very important to have all the Spectrum 2 data stored in the host system as described earlier in this document. Otherwise you won't be able to upgrade running container without loosing the data.
 

	
 
	$ docker pull spectrum2/spectrum
 
	$ docker stop spectrum2
 
	$ docker rm spectrum2
 
	$ docker run --name="spectrum" -d --restart unless-stopped -v /opt/spectrum2/configuration:/etc/spectrum2/transports -v /opt/spectrum2/data:/var/lib/spectrum2 spectrum2/spectrum
 
	$ docker run --name="spectrum2" -d --restart unless-stopped -v /opt/spectrum2/configuration:/etc/spectrum2/transports -v /opt/spectrum2/data:/var/lib/spectrum2 spectrum2/spectrum
0 comments (0 inline, 0 general)