Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
workaround: make sure that the container has an ip when installing
Browse files Browse the repository at this point in the history
related to #4
  • Loading branch information
tpokorra committed Jul 10, 2021
1 parent 9ee8a4a commit 5a43618
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions initCentOS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ sed -i 's/^keepcache=0/keepcache=1/g' $rootfs_path/etc/yum.conf
# install openssh-server
lxc start $name
sleep 5
lxc exec $name -- dhclient
lxc exec $name -- /bin/bash -c "yum -y install openssh-server && systemctl enable sshd && systemctl start sshd"
lxc exec $name -- /bin/bash -c "hostnamectl set-hostname $hostname"

Expand Down

0 comments on commit 5a43618

Please sign in to comment.