Tag Archives: docker

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

Advertisements

oracle linux docker portable apps tutorial and downloadable vm

oracle linux docker portable apps tutorial and downloadable vm

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

docker image removal

docker image deletion and removal

get a list of images

$ docker images --all
REPOSITORY TAG IMAGE ID CREATED SIZE
laradock_nginx latest 687eb3dccec0 23 hours ago 24.4MB
laradock_php-fpm latest 9011ae1a47a5 23 hours ago 414MB
laradock_redis latest a085dd214956 24 hours ago 107MB
laradock_workspace latest 2ea822e3b905 24 hours ago 725MB
osde8info/get-started part-2 05bbc25a892f 27 hours ago 148MB
node alpine 785e257485e7 4 days ago 68.4MB
bitnami/redmine latest e547bec0c9bb 7 days ago 708MB
postgres alpine f4f4231d6f0b 10 days ago 39.5MB

delete a specific image

$ docker image rm f4f4231d6f0b

docker images are kept in /var/lib/docker

docker images are kept in /var/lib/docker

# du -s /var/lib/docker/*
20    /var/lib/docker/builder
220   /var/lib/docker/containerd
884   /var/lib/docker/containers
30028 /var/lib/docker/image
84    /var/lib/docker/network
5876620 /var/lib/docker/overlay2
20    /var/lib/docker/plugins
4     /var/lib/docker/runtimes
4     /var/lib/docker/swarm
4     /var/lib/docker/tmp
4     /var/lib/docker/trust
188   /var/lib/docker/volumes

you can save a lot of space by deleting any unused images and containers

# du -s /var/lib/docker/*
20	/var/lib/docker/builder
220	/var/lib/docker/containerd
4	/var/lib/docker/containers
2888	/var/lib/docker/image
84	/var/lib/docker/network
163380	/var/lib/docker/overlay2
20	/var/lib/docker/plugins
4	/var/lib/docker/runtimes
4	/var/lib/docker/swarm
4	/var/lib/docker/tmp
4	/var/lib/docker/trust
188	/var/lib/docker/volumes