this because problem with network wsl to host. Solution is here. Run command
sudo ifconfig eth0 mtu 1350
, or it could be sudo ifconfig eth0 mtu xxxx
.
Solution to make it permanent. add it to /etc/wsl.conf
. detail here
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
<template> | |
<div class="ui-image" :style="getStyle()"> | |
</div> | |
</template> | |
<script> | |
export default { | |
props: { | |
src: { | |
type: String, |
version: '3.1' | |
services: | |
db_postgres: | |
container_name: db_postgres_mynykah | |
image: postgres | |
environment: | |
POSTGRES_DB: postgres | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: password123 |
this because problem with network wsl to host. Solution is here. Run command
sudo ifconfig eth0 mtu 1350
, or it could be sudo ifconfig eth0 mtu xxxx
.
Solution to make it permanent. add it to /etc/wsl.conf
. detail here
Docker container cannot connect to host wsl. I don't know why.
Check your connection from container to host using this code. This will run curl code from container. alternatively you can do 2 test, using --add-host
or not.
docker run -d --name=postgresql -p 5432:5432 -v /var/lib/postgresql/data:/var/lib/postgresql/data \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_DB=postgres \
postgres
function ImportantMetadata() { | |
const logo = "/favicon.png" | |
const title = "" | |
const description = "" | |
return ( | |
<> | |
<title>{title}</title> | |
<link rel="icon" href={logo} /> | |
<link rel="shortcut icon" type="image/x-icon" href={logo} /> | |
<link rel="apple-touch-icon" sizes="180x180" href={logo} /> |