Hallo Ihr Lieben,
ich habe mir über docker compose.yaml einen container erstellt:
im docker wird folgendes angezeigt:
Warum wird mir kein Port angezeigt? Inhalte aus der container Datei:
ich habe mir über docker compose.yaml einen container erstellt:
YAML:
version: "3.3"
services:
portainer:
image: portainer/portainer-ce:latest
container_name: portainer
restart: always
networks:
macvlan25:
ipv4_address: 192.168.25.2
privileged: true
volumes:
- ./data:/data
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "192.168.25.2:9443:9443"
networks:
macvlan25:
ipv4_address: 192.168.25.2
networks:
macvlan25:
external: true
Bash:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3fa49b24140d portainer/portainer-ce:latest "/portainer" 8 seconds ago Up 5 seconds portainer
Code:
[
{
"Id": "3fa49b24140d6cad6323ccdbd9edba313cb7b6271782016bbd5d194bfed1ff30",
"Created": "2023-01-08T16:02:34.394741032Z",
"Path": "/portainer",
"Args": [],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 91315,
"ExitCode": 0,
"Error": "",
"StartedAt": "2023-01-08T16:02:37.098570543Z",
"FinishedAt": "0001-01-01T00:00:00Z"
},
...
"Name": "/portainer",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "unconfined",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/var/run/docker.sock:/var/run/docker.sock:rw",
"/opt/containerd/portainer/data:/data:rw"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "macvlan25",
"PortBindings": {
"9443/tcp": [
{
"HostIp": "192.168.25.2",
"HostPort": "9443"
}
]
},
...
"Hostname": "3fa49b24140d",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"8000/tcp": {},
"9000/tcp": {},
"9443/tcp": {}
},
...
"NetworkSettings": {
"Bridge": "",
"SandboxID": "aede61693e3a05569e67272eb26b6d662e7502f1e580063c943b5298cb72bad8",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {},
"SandboxKey": "/var/run/docker/netns/aede61693e3a",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"macvlan25": {
"IPAMConfig": {
"IPv4Address": "192.168.25.2"
},
"Links": null,
"Aliases": [
"3fa49b24140d",
"portainer"
],
"NetworkID": "161cd4e3c342bf087573a1c6ec35e82bc07c87efa7b6e4d45e7186e33a6526bc",
"EndpointID": "6e3054919d1e06db12db47ec45f9bf7b9fdbaac6de4b330f0e9add6bc7eab58c",
"Gateway": "192.168.25.1",
"IPAddress": "192.168.25.2",
"IPPrefixLen": 24,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:c0:a8:19:02",
"DriverOpts": null
}
}
}
}
]
Zuletzt bearbeitet: