date: cannot set date: Operation not permitted Fri Aug 18 09:59:19 UTC 2017
I tried
lxc config set rstudio environment.LC_ALL=en_US.UTF-8
and after
sudo lxc exec rstudio -- /bin/bash
in container
date 081809592017.19
I installed ntpdate, but
ntpdate 0.ubuntu.pool.ntp.org , ...
no server suitable for synchronization found
so, i tried to config _nano /etc/ntp.conf_, but it not exists.
Pleas, help me.
This isn麓t actually a lxd issue.
Install ntp with:
apt install ntp
then
ntpq -p
It didn't solve the problem.
System time is shared between containers and host since it's the same kernel. It's therefore not allowed for a container to alter system time as that would affect the entire host.
You can obviously change timezone as that's a userspace concept, but changing time is something you need to do on the host.
Most helpful comment
System time is shared between containers and host since it's the same kernel. It's therefore not allowed for a container to alter system time as that would affect the entire host.
You can obviously change timezone as that's a userspace concept, but changing time is something you need to do on the host.