Tag Archives: docker

kind – kubenetes in docker #cloud #cloudops #devops

kind – kubenetes in docker #cloud #cloudops #devops

install docker.io

# aptitude install docker.io
# snap install kubectl --classic

then

github

kind user commands

$ go get -u sigs.k8s.io/kind
$ export PATH=$PATH:$(go env GOPATH)/bin
$ kind create cluster
$ kind get clusters
$ export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"
$ kubectl cluster-info

MicroK8S single node #kubenetes #webdev #sysadmin #devops

MicroK8S single node #kubenetes #webdev #sysadmin #devops

thanks to

docker node.js images not to be confused with the docker node command

docker node.js images not to be confused with the docker node command

how to run a single Node.js script

For many simple, single file projects, you may find it inconvenient to write a complete Dockerfile. In such cases, you can run a Node.js script by using the Node.js Docker image directly:

$ docker run -it --rm --name my-running-script -v 
"$PWD":/usr/src/app -w /usr/src/app node:8 
node your-daemon-or-script.js

docker node command

Develop locally – Deploy globally – with the IBM Bluemix Cloud Developer CLI

Develop locally – Deploy globally – with the IBM Bluemix Cloud Developer CLI

https://console.bluemix.net/docs/cli/idt/index.html#developing

How local containers are used

The IBM® Cloud® Developer Tools CLI uses two containers to facilitate building and testing your application. The first is the tools container, which contains the necessary utilities to build and test your application. The Dockerfile for this container is defined by the dockerfile-tools parameter. You might think of it as a development container as it contains the tools normally used for development of a particular runtime.

The second container is the run container. This container is of a form suitable to be deployed for use, for example, in IBM® Cloud. As a result, an entry point is defined that starts your application. When you select to run your application through the Developer Tools CLI, it uses this container. The Dockerfile for this container is defined by the dockerfile-run parameter.

ms azure ubuntu docker appliance

ms azure ubuntu docker appliance

This item deploys an Ubuntu Server 16.04 LTS (amd64 20160627) virtual machine, as published by Canonical, in Microsoft Azure and then installs a Docker Engine, via a VM Extension as published by Microsoft, in the virtual machine.

NOTE: This deployment does not enable a Remote Client connection. Please refer to Running Docker with https to configure Docker to be reachable via the network in a safe manner.

Ubuntu Server is a popular Linux distribution for cloud environments. Updates and patches for Ubuntu Server 16.04 will be available until April, 2021. Ubuntu Server is the perfect platform for all workloads from web applications to NoSQL databases and Hadoop. For more information see Ubuntu Cloud and using Juju to deploy your workloads.

docker container removal

docker container removal

$ docker container list --all
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7892a81691c6 docker/ucp "/bin/ucp-tool" 35 minutes ago Exited (0) 35 minutes ago cranky_shannon
ff848049bc55 redmine "/docker-entrypoint.…" About an hour ago Exited (0) About an hour ago inspiring_babbage
fe67ab61abda redmine "/docker-entrypoint.…" About an hour ago Exited (0) About an hour ago cocky_bartik
65a554844970 bitnami/redmine "/app-entrypoint.sh …" About an hour ago Exited (1) About an hour ago upbeat_pare

 

docker rm container

$ docker rm 4c5784e79dd9