bash source in lxc 1

bash source in lxc

lxc-attach container_name -- bash -c "source /root/.bashrc"

Here is what the above code is Doing:
1. Create a container named “container_name”
2. Start the container
3. Attach to the container
4. Run the command “source /root/.bashrc”

Similar Posts