To install a custom package or modify an existing docker image we need to
- run a docker a container from the image we wish to modify
- modify the docker container
- commit the changes to the container as a docker image
- test changes made to image
Message: 'Backing up (2/2: Data) rbd://ceph/vm-102-disk-0 Read Queue [==========] Write Queue [ ] (97.4% 108.3MB/s\xd8 ETA 5s) ' | |
Arguments: () | |
--- Logging error --- | |
Traceback (most recent call last): | |
File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit | |
stream.write(msg) | |
UnicodeEncodeError: 'ascii' codec can't encode character '\xd8' in position 144: ordinal not in range(128) | |
Call stack: | |
File "/usr/bin/backy2", line 11, in <module> | |
load_entry_point('backy2==2.13.2', 'console_scripts', 'backy2')() |
To install a custom package or modify an existing docker image we need to
root@hn-cas-proxmox1-10-52:/home/canhdx# ceph -s | |
cluster: | |
id: 4d2fb85e-d30e-428d-b5ca-43aef79bbc90 | |
health: HEALTH_WARN | |
1 daemons have recently crashed | |
services: | |
mon: 3 daemons, quorum hn-cas-proxmox1-10-52,hn-cas-proxmox2-10-53,hn-cas-proxmox3-10-54 (age 7m) | |
mgr: hn-cas-proxmox1-10-52(active, since 7m) | |
osd: 3 osds: 3 up (since 7m), 3 in (since 11m) |
#!/bin/bash | |
# HOW TO INSTALL | |
# Run below as root | |
# cd ~/ && wget -O install_mondorescue.sh https://gist.github.com/KEINOS/a71475750b644b1c26db42870cfbafe5/raw&&chmod 0755 install_mondorescue.sh && ./install_mondorescue.sh | |
# --------------------------------- | |
# Set screen width | |
# --------------------------------- | |
if [ -n "${TERM}" ]; then width=$(tput cols); else width=20; fi |
~# uname -a | |
~# lsb_release -a | |
~# locale-gen en_US | |
~# locale-gen en_US.UTF-8 | |
~# apt-get -y --force-yes remove ntpdate | |
~# apt-get -y --force-yes install ntp | |
~# /etc/init.d/ntp restart | |
~# dpkg-reconfigure tzdata |