AzCopy is a useful tool for data operations between servers and Azure Cloud Storage. However, by default, this tool cannot be used on servers with less than 1GB of memory. To resolve this issue, some parameters need to be configured.
Try to set
export AZCOPY_CONCURRENCY_VALUE=1
export AZCOPY_CONCURRENT_SCAN=1
export AZCOPY_BUFFER_GB=0.12
Values can be changed based on your system configuration.
Запись How to use the AzCopy tool on low memory servers впервые опубликована на сайте ITExplain.]]>
After upgrading Grafana to version 10.x, when configured with a reverse proxy, you may receive the error message ERR_TOO_MANY_REDIRECTS in the browser. To fix it, try setting serve_from_sub_path = false in grafana.ini file or set environment variable GF_SERVER_SERVE_FROM_SUB_PATH=false.
Some Golang applications might return the error “Error loading shared library libresolv.so.2: No such file or directory”. To fix this, you need to install additional packages.
In Alpine, you need to install the gcompat package using apk. You can do this with the command: apk add gcompat
After the installation, try running the Golang application again.
Запись Error loading shared library libresolv.so.2: No such file or directory впервые опубликована на сайте ITExplain.]]>
FUSE is a Filesystem in Userspace that allows the creation of custom filesystems in userspace, such as cloud storage, NFS and etc. But for mount inside docker container need to add additional parameters to docker run command or inside docker-compose.yml file.
At first, you should have docker image with installed fuse package inside container. For allow mount inside container need to run docker run command with --cap-add SYS_ADMIN --device /dev/fuse:/dev/fuse --security-opt apparmor:unconfined
For docker-compose need to put inside docker-compose.yml file:
cap_add:
- SYS_ADMIN
devices:
- /dev/fuse:/dev/fuse
security_opt:
- apparmor:unconfined
Examples:
docker run -it --rm --cap-add SYS_ADMIN --device /dev/fuse:/dev/fuse --security-opt apparmor:unconfinedversion: '3'
services:
mycontainer:
image: container_image:container_version
cap_add:
- SYS_ADMIN
devices:
- /dev/fuse:/dev/fuse
security_opt:
- apparmor:unconfined
Запись Fuse mount in docker or docker-compose впервые опубликована на сайте ITExplain.]]>
Just use next command:
$env:TEST = "test_value"
where TEST is a name of environment variable and test_value – value for this variable.
If you want to check, use
Get-Item Env:your_env_var_nameor
Get-ChildItem Env:
if you want to get all environment variables.
Запись PowerShell: Set environment variable впервые опубликована на сайте ITExplain.]]>