• Home
  • Linux
  • Docker
  • Windows
    • PS
    • C#
    • Exchange Server
  • Other
    • Perl
    • IPV6
    • MacOS
  • DB
    • MSSQL
    • MariaDB
    • PG

Home

Команды для bind9

Details
Written by: po3dno
Category: Docker
Created: 25 November 2024
Hits: 214

docker run -it --rm --name bind9-container -e TZ=UTC -p 53:53 -p 53:53/udp --mount type=bind,source=/data/bind/conf/,target=/etc/bind:rw ubuntu/bind9

docker exec -it bind9-container /bin/bash

docker volume create --opt type=none --opt device=/data/bind/bind-conf --opt o=bind bind-conf bind-conf

Как работают и создаются тома с bind и mount в Docker

Details
Written by: po3dno
Category: Linux
Created: 25 November 2024
Hits: 185

04 июня 2022


Создаем volume в Docker используя bind и mount на примерах


Запуская контейнер Docker нам может понадобится сохранить где-то данные или наоборот добавить их в контейнер. Для реализации этой задачи, в Docker, был создан объект томов и возможность проброса папок. Рассмотрим как это работает на примерах.

Read more …

Как работают и создаются тома с bind и mount в Docker

Details
Written by: po3dno
Category: Linux
Created: 25 November 2024
Hits: 191

04 июня 2022


Создаем volume в Docker используя bind и mount на примерах


Запуская контейнер Docker нам может понадобится сохранить где-то данные или наоборот добавить их в контейнер. Для реализации этой задачи, в Docker, был создан объект томов и возможность проброса папок. Рассмотрим как это работает на примерах.

Read more …

victoria-metrics

Details
Written by: po3dno
Category: Linux
Created: 20 November 2024
Hits: 215
mkdir -p /data/victoria-metrics-data

docker run -d -it --rm -v /data/victoria-metrics-data:/victoria-metrics-data -p 8428:8428 --name victoria-metrics victoriametrics/victoria-metrics

curl -v http://localhost:8428/metrics

Extract all DLLs from a Nuget package (nupkg) with Windows cmd batch file

Details
Written by: po3dno
Category: C#
Created: 13 November 2024
Hits: 272
@echo off
REM Extracts all .dll files from nugets in this folder or its subfolders and copies them to a subfolders
REM .
REM Note: Uses .NET 4.5 to unzip the nugets. If this fails, use 7zip or something similar. 
REM       See http://stackoverflow.com/questions/17546016/how-can-you-zip-or-unzip-from-the-command-prompt-using-only-windows-built-in-ca/26843122#26843122


echo Extracting all dlls from nugets to folder \extracted-dlls

REM %mypath% is where the batch file is located
set mypath=%~dp0

set temppath=%~dp0temp\
set dllpath=%~dp0extracted-dlls\

REM Delete old dlls
echo Deleting old files
rd /s /q %dllpath%"
mkdir %dllpath%

rem traverse all nupkg files
pushd %mypath%
	for /r %%a in (*.nupkg) do (
		
		echo \- Processing %%~nxa
		
		REM unzip nuget to %temppath% folder.
		powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory('%%a', '%temppath%'); }
		
		REM Copy all dlls 
		REM See: http://stackoverflow.com/questions/11720681/windows-batch-copy-files-from-subfolders-to-one-folder
		pushd %temppath%
			for /r %%b in (*.dll) do (
				echo     \- Found %%~nxb
				COPY "%%b" "%dllpath%%%~nxb"
			)
		popd
		
		REM Delete Temp folder
		rd /s /q %temppath%"
    )
popd

pause
  1. nuget
  2. Disable Virtualization Based Security
  3. Установка и подключение PostgreSQL на Mac Os
  4. Working with ODBC Connections in Powershell

Subcategories

Power Shell Article Count:  53

C# Article Count:  10

Perl Article Count:  1

Exchange Server Article Count:  15

Other Article Count:  24

MSSQL Article Count:  17

Windows Article Count:  25

MariaDB Article Count:  3

Linux Article Count:  8

Docker Article Count:  2

pg Article Count:  1

Page 2 of 32

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

Login Form

  • Forgot your password?
  • Forgot your username?

Statistics

  • Users 2
  • Articles 175
  • Articles View Hits 154278