Here is how issue looked like:
$ sudo docker login registry.example.com
Username: <registry-username>
Password: <registry-password>
Here is how issue looked like:
$ sudo docker login registry.example.com
Username: <registry-username>
Password: <registry-password>
outlook.exe /cleanviews
Problem:
$ lxc launch images:centos/7 kmaster
Creating kmaster
Error: Failed instance creation: Get https://images.linuxcontainers.org/streams/v1/index.json: Unable to connect to: images.linuxcontainers.org:443
$ lxc image list images:
Error: Get https://images.linuxcontainers.org/streams/v1/index.json: proxyconnect tcp: read tcp 161.85.18.78:39688->165.225.104.34:9480: read: connection reset by peer
$ sudo service docker stop | |
$ gksudo gedit /etc/default/docker | |
# Use DOCKER_OPTS to modify the daemon startup options. | |
DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4 -g /home/jokla/docker/docker/" | |
$ sudo service docker start | |
UBUNTU 16.04 |
Typing vagrant
from the command line will display a list of all available commands.
Be sure that you are in the same directory as the Vagrantfile when running these commands!
vagrant init
-- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.vagrant init <boxpath>
-- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64
.vagrant up
-- starts vagrant environment (also provisions only on the FIRST vagrant up)svn info . # svn info of the repo
svn co <url> # svn checkout
svn up # svn update
svn st # svn status
svn up <file/directory> # svn update specific file or directory
svn add <file/directory> # svn add/stage file
svn ci -m "<msg>" [<filename>] # commit to svn
svn log # svn log for whole repo
#Scripted Pipeline Job
node('SlaveSCMConnected') {
stage('SCM operation'){
checkout scm
sh 'mvn clean install'
}
}
#!/bin/bash | |
version="${VERSION:-0.14.0}" | |
arch="${ARCH:-linux-amd64}" | |
bin_dir="${BIN_DIR:-/usr/local/bin}" | |
wget "https://github.com/prometheus/node_exporter/releases/download/v$version/node_exporter-$version.$arch.tar.gz" \ | |
-O /tmp/node_exporter.tar.gz | |
mkdir -p /tmp/node_exporter |
Export running container as image:
docker export --output="<filename>.tar" <container_name/id>
Ex:
docker export --output="alpine.tar" alpine
Importing exported container as docker image: