Skip to main content

Thursday, July 14, 2023

· 2 min read

Best practice:

docker volume create --opt type=none --opt o=bind --opt device=/data/volumes/testvol testvol
➜  ~ docker inspect testvol
[
{
"CreatedAt": "2023-07-13T04:36:16Z",
"Driver": "local",
"Labels": {},
"Mountpoint": "/var/lib/docker/volumes/testvol/_data",
"Name": "testvol",
"Options": {
"device": "/data/volumes/testvol",
"o": "bind",
"type": "none"
},
"Scope": "local"
}

In default, the created volume will just sit on /var/lib/docker/volumes

docker volume create defaultvol
➜  ~ docker volume inspect defaultvol
[
{
"CreatedAt": "2023-07-13T04:51:57Z",
"Driver": "local",
"Labels": null,
"Mountpoint": "/var/lib/docker/volumes/defaultvol/_data",
"Name": "defaultvol",
"Options": null,
"Scope": "local"
}

  • Proxies Server: Traefik vs NGINIX

Proxies have become an essential networking component and are frequently used with many popular internet services. Proxy servers facilitate requests and responses between end-users and web servers, providing helpful features that augment routing control, privacy, and security. NGINX and Traefik are the most popular tools currently offering proxy functionality. Both solutions can support traditional server-based deployments and containerized application environments, such as Kubernetes. This article will examine both tools in-depth and cover their pros, cons, and distinguishing features.

Traefik vs NGINX: Use Case Comparison