Use pacman commond in archlinux

General configuration vim /etc/pacman.conf Skip package from being upgraded IgnorePkg=linux Skip package group from being upgraded IgnoreGroup=gnome Skip files from being installed to system NoExtract=usr/lib/systemd/system/* Repositories vim /etc/pacman.d/mirrorlist Installing specific packages pacman -S package_name1 package_name2 ... Install defined version pakages pacman -S extra/package_name Installing package groups pacman -S gnome To remove a single package, leaving all of its dependencies installed pacman -R package_name To remove a package and its dependencies which are not required by any other installed package pacman -Rs package_name To remove a package, its dependencies and all the packages that depend on the target package: Warning: This operation is recursive, and must be used with care since it can remove many potentially needed packages.

Read On →

How to install archlinux in virtualbox

1 . Downloads Archlinux, if you want to install to your hard disk, burn it to cd or use dd to a flash disk dd if=archlinux.iso of=/dev/sdb bf=2M 2 . cfdisk to create / and swap partition at least for example /dev/sda1 as / /dev/sda2 as swap 3 . format disk mkfs.ext4 /dev/sda1 mkswap /dev/sda2 4 . active swap swapon /dev/sda2 5 . mount mount /dev/sda1 /mnt/ 6 . edit source vi /etc/pacman.d/mirrorlist put the nearest and fastest source to the top the list 7 .

Read On →

The Docker User Guide Examples

Hello world docker run ubuntu:14.04 /bin/echo 'Hello world' An Interactive Container docker run -t -i ubuntu:14.04 /bin/bash A Daemonized Hello world docker run -d ubuntu:14.04 /bin/sh -c "while true; do echo hello world; sleep 1; done" Running a Web Application in Docker docker run -d -P training/webapp python app.py Viewing our Web Application Container docker ps -l docker run -d -p 5000:5000 training/webapp python app.py A Network Port Shortcut docker logs -f nostalgic_morse Looking at our Web Application Container’s processes docker top nostalgic_morse Inspecting our Web Application Container docker inspect nostalgic_morse Stopping our Web Application Container docker stop nostalgic_morse Restarting our Web Application Container docker start nostalgic_morse Removing our Web Application Container docker stop nostalgic_morse docker rm nostalgic_morse Listing images on the host docker images Getting a new image docker pull centos Finding images docker search sinatra Pulling our image docker pull training/sinatra Creating our own images docker run -t -i training/sinatra /bin/bash root@0b2616b0e5a8:/# gem install json docker commit -m "Added json gem" -a "Kate Smith" \ 0b2616b0e5a8 ouruser/sinatra:v2 Building an image from a Dockerfile Let's create a directory and a Dockerfile first.

Read On →

Docker run man page

Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...] Run a command in a new container -a, --attach=[] Attach to STDIN, STDOUT or STDERR. --add-host=[] Add a custom host-to-IP mapping (host:ip) -c, --cpu-shares=0 CPU shares (relative weight) --cap-add=[] Add Linux capabilities --cap-drop=[] Drop Linux capabilities --cidfile="" Write the container ID to the file --cpuset="" CPUs in which to allow execution (0-3, 0,1) -d, --detach=false Detached mode: run the container in the background and print the new container ID --device=[] Add a host device to the container (e.g.

Read On →

Docker options and command

Usage: docker [OPTIONS] COMMAND [arg...] A self-sufficient runtime for linux containers. Options: --api-enable-cors=false Enable CORS headers in the remote API -b, --bridge="" Attach containers to a pre-existing network bridge use 'none' to disable container networking --bip="" Use this CIDR notation address for the network bridge's IP, not compatible with -b -D, --debug=false Enable debug mode -d, --daemon=false Enable daemon mode --dns=[] Force Docker to use specific DNS servers --dns-search=[] Force Docker to use specific DNS search domains -e, --exec-driver="native" Force the Docker runtime to use a specific exec driver --fixed-cidr="" IPv4 subnet for fixed IPs (e.g.

Read On →

Basic knowledge about docker and installation

About Docker is a platform for developers and sysadmins to develop, ship, and run applications. Docker lets you quickly assemble applications from components and eliminates the friction that can come when shipping code. Docker lets you get your code tested and deployed into production as fast as possible. Docker consists of: The Docker Engine Docker Hub Why Docker? Faster delivery of your applications Deploy and scale more easily Get higher density and run more workloads Faster deployment makes for easier management Installation A.

Read On →