docker:change_host_name

문서의 이전 판입니다!


sudo docker stop CONTAINER_NAME
sudo service docker stop

Edit config file (JSON) [You should make backup first]

/var/lib/docker/containers/CONTAINER_ID/config.json

Replace “Hostname”:“WHATEVER”

with “Hostname”:“NEW_HOSTNAME”

sudo service docker start
sudo docker start CONTAINER_NAME
  • docker/change_host_name.1504281056.txt.gz
  • 마지막으로 수정됨: 2020/09/25 10:12
  • (바깥 편집)