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/25 10:12
  • 저자 127.0.0.1