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.txt
  • 마지막으로 수정됨: 2020/09/26 02:12
  • (바깥 편집)