Showing posts with label set. Show all posts
Showing posts with label set. Show all posts
Monday, August 21, 2017
Ubuntu 12 04 Set Docker To Use the LXC Container Engine
Ubuntu 12 04 Set Docker To Use the LXC Container Engine
As of Docker 0.9, docker does not use LXC by default for the container engine. However, one may find it useful to do so, in order to attach to running containers with a new TTY.
Method 1 - Installation Script
Simply copy the following script into a file and execute it with
sudo bash my-script.sh
#!/bin/bash
# Ensure running bash not sh etc
if ! [ -n "$BASH_VERSION" ];then
echo "this is not bash, calling self with bash....";
SCRIPT=$(readlink -f "$0")
/bin/bash $SCRIPT
exit;
fi
# Ensure running as root user
USER=`whoami`
if [ "$USER" != "root" ]; then
echo "You need to run me with sudo!"
exit
fi
apt-get update && apt-get install lxc -y
echo DOCKER_OPTS="-e lxc" >> /etc/default/docker
service docker restart
Method 2 - Manual Steps
Ensure that you already have LXC installed by running the following command
sudo apt-get install lxc -y
Edit the /etc/default/docker file and adding "-e lxc" as shown below: 

Restart the docker service by running
sudo service docker restartor by rebooting the server
References
- Bindable - Make lxc-attach work again with docker 0.9
- Stack Overflow - Docker-enter-running-container-with-new-tty
download file now
Tuesday, August 15, 2017
Ubuntu的root密� �是什么 How to set the password for root in UTUNBU
Ubuntu的root密� �是什么 How to set the password for root in UTUNBU
Ubuntu???root?????????????????????????root????????? user ?? admin ? ??????? root ???? ?
?root???????
??????????????--??--?????????????
sudo passwd root
??????????????????????
[sudo] password for you ?---> ??????????????????????
Enter new UNIX password: --- > ??root ??
Retype new UNIX password: --> ????????root???????
????????root?????root????????????System->Administration->Users and Groups. Choose root and unlock it.
????????????
http://wuxiong8665.blog.163.com/blog/static/93512200961184643307/
download file now
Wednesday, August 9, 2017
Trio click with life job set eyes on future
Trio click with life job set eyes on future
Taken from Times of India.
PUNE: In many ways, Pratibha Sanap is like any other 22-year-old, upbeat with her new full-time job with a city-based software major. On weekdays, Sanap tests the software designed by her company for the visually impaired and on weekends, she surfs social networking sites, cooks a sumptuous lunch for herself and her two friends,
download file now
Subscribe to:
Posts (Atom)