작성
·
476
0
[root@e83d1887d439 ~]# ssh-copy-id root@172.17.0.3
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: WARNING: All keys were skipped because they already exist on the remote system.
(if you think this is a mistake, you may want to use -f option)
[root@e83d1887d439 ~]# ssh-copy-id root@172.17.0.4
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: ERROR: ssh: connect to host 172.17.0.4 port 22: Connection refused
[root@e83d1887d439 ~]# docker exec docker-server systemctl status sshd
Error: No such container: docker-server현재 발생한 에러인데
sang-gyu ~
docker network inspect bridge
[
{
"Name": "bridge",
"Id": "b1e14a292142598e8bcd79d82082aaff3e38cea78e21bf96be13f653372729fc",
"Created": "2023-11-22T09:53:35.039938917Z",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "172.17.0.0/16",
"Gateway": "172.17.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"3fb54fe4c70280511b312f38bee776752f25bc3c63b419be2084e5b27225c643": {
"Name": "jenkins-server",
"EndpointID": "83739368b00a9e4d8cdfd8d09c96c8a313acf5fbd8bb52f6e715d58d0f79d373",
"MacAddress": "02:42:ac:11:00:02",
"IPv4Address": "172.17.0.2/16",
"IPv6Address": ""
},
"8a361c8c922999eba52422d0b6f7608fa2665b1a074a2a9df8ab5ee9d4ae45cd": {
"Name": "docker-server",
"EndpointID": "d0389122955b24d7db4b1eb7d5f60f001e1ab4de1a58305fa8d9b13711db16f5",
"MacAddress": "02:42:ac:11:00:04",
"IPv4Address": "172.17.0.4/16",
"IPv6Address": ""
},
"e83d1887d439e59bbe54630c8968cbcddbb461ca911116b304befa9d628833d4": {
"Name": "ansible-server",
"EndpointID": "cd7dc8ebd152940c9c2439ba26e9e21704b8426be6cef96cbd71ddb7e52da43b",
"MacAddress": "02:42:ac:11:00:03",
"IPv4Address": "172.17.0.3/16",
"IPv6Address": ""
}
},
"Options": {
"com.docker.network.bridge.default_bridge": "true",
"com.docker.network.bridge.enable_icc": "true",
"com.docker.network.bridge.enable_ip_masquerade": "true",
"com.docker.network.bridge.host_binding_ipv4": "0.0.0.0",
"com.docker.network.bridge.name": "docker0",
"com.docker.network.driver.mtu": "65535"
},
"Labels": {}
}
]
[root@e83d1887d439 ~]# cat /etc/ansible/hosts
[devops]
172.17.0.3
172.17.0.4
왜 에러가 발생하는지 모르겠습니다 엔서블 루트에 접속해서 카피하는게 맞는거같은데 ...