본문 바로가기
DevOps

Docker 원격

by lumination 2025. 5. 30.

root@lb:/lib/systemd/system# systemctl restart docker

Warning: The unit file, source configuration file or drop-ins of docker.service changed on disk. Run 'systemctl daemon-reload' to reload units.
root@lb:/lib/systemd/system# systemctl daemon-reload
root@lb:/lib/systemd/system# systemctl restart docker
root@lb:/lib/systemd/system# cat docker.service
[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network-online.target nss-lookup.target docker.socket firewalld.service containerd.service time-set.target
Wants=network-online.target containerd.service
Requires=docker.socket
StartLimitBurst=3
StartLimitIntervalSec=60

[Service]
Type=notify
# the default is not to use systemd for cgroups because the delegate issues still
# exists and systemd currently does not support the cgroup feature set required
# for containers run by docker
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock -H 0.0.0.0:2375
ExecReload=/bin/kill -s HUP $MAINPID
TimeoutStartSec=0
RestartSec=2
Restart=always

 

ExecStart 부분에 -H 0.0.0.0:2375 추가한다.

 

sudo systemctl daemon-reload
sudo systemctl restart docker.service

 

'DevOps' 카테고리의 다른 글

APM, JAVA Agent  (0) 2024.03.06
GitOps 참고글  (0) 2024.02.23
docker를 돌려보자  (0) 2023.11.22