Find the service name:
-
Check status:
-
Start/Stop/Restart:
-
View logs live:
sudo journalctl -u <service_name> -f
Comunidad de Software Libre en la República Dominicana.
Find the service name:
systemctl list-units --type=service | grep -i tts
Check status:
sudo systemctl status <service_name>
Start/Stop/Restart:
sudo systemctl start|stop|restart <service_name>
View logs live:
sudo journalctl -u <service_name> -f
1 allow remote connections
nano /etc/my.cnf.d/mariadb-server.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
log-error=/var/log/mariadb/mariadb.log
pid-file=/run/mariadb/mariadb.pid
bind-address = 0.0.0.0
2 restart the service
sudo systemctl restart mariadb
3 check status
sudo systemctl status mariadb
4 Grant access to the user remotely
MariaDB [(none)]> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'asterisk' WITH GRANT OPTION;
5 Reload settings
MariaDB [(none)]> FLUSH PRIVILEGES;
6 Test connection
mysql -h 135.178.45.132 -u root -pasterisk
7 run phpmyadmin
docker run --name phpmyadmin -d -e PMA_ARBITRARY=1 -p 8080:80 --restart always phpmyadmin/phpmyadmin
| Method | What It Does | Captures | Includes Docker Metadata (e.g., Environment Variables, Exposed Ports, etc.) | Output | When to Use |
|---|---|---|---|---|---|
1. docker commit + docker save | Commits a running container to an image, then saves the image to a tarball. | Full Docker image (file system + metadata) | Yes, includes metadata like environment variables, exposed ports, etc. | Tarball of Docker image with all layers and metadata | When you need to clone the container with its full environment, settings, and layers to another server. |
2. docker export | Exports the file system of a container to a tarball (without Docker metadata). | Container's file system only (no image layers or metadata) | No, metadata is lost (ports, environment variables, etc.) | Tarball of just the container’s file system (without Docker metadata) | When you need to copy just the data or file system of a container and don’t need configuration or metadata. |
3. docker save (for an image) | Saves a Docker image (not a running container) to a tarball, including all its layers and history. | Full Docker image (layers and configuration) | Yes, includes metadata such as environment variables, labels, etc. | Tarball of the Docker image, including layers, history, and metadata | When you want to save and transfer a Docker image, not a running container, and keep the full image history and layers. |
4. docker import (after export) | Imports a tarball (typically from docker export) to create a new Docker image, without Docker metadata. | Only the file system (no history or layers) | No, metadata is lost (you need to reconfigure manually). | A new Docker image with just the file system content | When you’ve exported a container’s file system and need to create a new image from it. |
5. docker cp (copying container data) | Copies files/folders from the container’s file system to your local machine or vice versa. | Only the copied files/folders, not the entire container | No, only copies specific files or directories you specify | Local file system copy (just files or directories, not a Docker image) | When you need to copy specific files or data from a container (like a database, config file, or log file). |
6. docker-compose (multi-container setup) | Uses a docker-compose.yml file to define multi-container environments (volumes, networks, etc.) and deploy them. | Full multi-container environment (with networks, volumes, etc.) | Yes, includes environment variables, networks, volumes, container links, etc. | Re-created multi-container environment (defined in docker-compose.yml) | When you need to clone or replicate a multi-container setup (e.g., microservices, apps with databases). |
7. Using Third-Party Tools (e.g., docker-clone) | Some third-party tools like docker-clone can automate container cloning. | Full or partial container environment (depending on the tool) | Varies by tool (some tools preserve environment variables, ports, etc.) | Container clone (depending on the tool, this might include data, image, or configuration) | When you need an automated or simplified way to clone containers, often for repeatable tasks. |
docker commit + docker savedocker save + docker load process.docker export (due to the entire image layers).docker exportdocker save (for an image)docker import (after export)docker export and need to recreate it as a Docker image.docker cpdocker-composedocker-compose.yml file.docker-clone)nano /usr/local/fop2/fop2.cfg
nano usr/src/fop2/server/fop2.cfg
ssl_certificate_file=/etc/asterisk/keys/pbx.expitrans.net/fullchain.pem
ssl_certificate_key_file=/etc/asterisk/keys/pbx.expitrans.net/private.pem
service fop2 restart
FreePBX Centos
/etc/httpd/conf.d/ssl.conf
</VirtualHost>
<VirtualHost *:443>
ServerName devpbx.expitest.com
DocumentRoot /var/www/html
SSLEngine on
SSLCertificateFile /etc/asterisk/keys/devpbx.expitest.com/fullchain.pem
SSLCertificateKeyFile /etc/asterisk/keys/devpbx.expitest.com/private.pem
# Optional for security improvements
SSLCipherSuite HIGH:!aNULL:!MD5
SSLProtocol all -SSLv2 -SSLv3
SSLHonorCipherOrder on
# Additional settings if needed (e.g., log files, directory options)
</VirtualHost>
[general]
enabled=yes
enablestatic=no
bindaddr=0.0.0.0
bindport=8088
sessionlimit=10000
session_inactivity=30000
session_keep_alive=15000
tlsenable=yes
tlsbindaddr=0.0.0.0:8089
tlscertfile=/etc/asterisk/keys/devpbx.expitest.com/fullchain.pem
tlsprivatekey=/etc/asterisk/keys/devpbx.expitest.com/private.pem
1 Create and modify the container:
docker run -it ubuntu /bin/bash
# Make changes (e.g., install curl)
apt update && apt install curl -y
exit
[root@freepbx ~]# sudo tcpdump -i eth0 tcp port 8089