| by Arround The Web

How to Install Ansible AWX 17.1.0 on Ubuntu 20.04

Source: LinOxide

Share Button
Read More
| by Arround The Web

How to Install Docker Compose on Ubuntu 20.04

Source: LinOxide

Share Button
Read More
| by Arround The Web

Using Ansible playbook to install Docker on Centos 7

Introduction Docker is a containerization engine and platform that encapsulates application code along with all of its dependencies inside a container. Containers are like virtual machines but they are more portable, more lightweight, and more dependent on the host operating system. Please do check out our extensive series of posts on docker. In this article, we […]

The post Using Ansible playbook to install Docker on Centos 7 appeared first on The Linux Juggernaut.

Share Button
Read More
| by Scott Kilroy

Create a docker container with the name option

Create a docker container with a name you choose by including the –name=”NAME” option for example you could use docker create –name=”kilroy” ubuntu:latest

Share Button
Read More
| by Scott Kilroy

Docker hostname option

You can control the hostname when you start a container by using the –name option docker run –rm -ti –hostname =”mycontainer.linuxconsultant.org” ubuntu:latest

Share Button
Read More
| by Scott Kilroy

Push docker a image to docker.com

Tag your image with: docker tag username_on_registry/image_name:latest Then docker push username_on_registry/image_name:latest

Share Button
Read More
| by Scott Kilroy

login to your local machine

using docker exec docker exec -t -i CONTAINERID /bin/bash for example docker exec -t -i 589f2ad30138 /bin/bash using docker-machine docker-machine ssh MACHINENAME

Share Button
Read More
| by Scott Kilroy

View docker logs

docker logs CONTAINERID for example docker logs c5a6254f7da2 to see logs update in realtime (similar to tail -f) add -f for example docker logs c5a6254f7da2 -f for no logs add the option –log-driver = none

Share Button
Read More
| by Scott Kilroy

View docker stats

docker stats CONTAINERID for example docker stats 2a39d6844918

Share Button
Read More
| by Scott Kilroy

Update local images

docker pull DISTRONAME:latest for example docker pull ubuntu:latest

Share Button
Read More
| by Scott Kilroy

Save changes to your docker container

You can save changes you make to your docker container by getting the container id and running the following command docker commit CONTAINERID IMAGENAME for example after installing apache I ran docker commit 89c48ac17dd7 apache-simple

Share Button
Read More
| by Scott Kilroy

Remove a local docker image

When you run “docker images” you’ll get results that look something like this REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE ubuntu latest 1d073211c498 2 weeks ago 187.9 MB To remove a image type “docker rmi -f IMAGE_ID (the 3rd column above). Warning this is permanent.

Share Button
Read More
| by Scott Kilroy

Prepare a docker container for AWS (elastic beanstalk)

cd to the directory containing your exported docker files, then run zip ../FILENAME.zip -r * .[^.]* This way kind of sucks, looking for a better way to do it.

Share Button
Read More
| by Scott Kilroy

List your local and running docker images and containers

To list your installed docker images run docker images To list your running docker containers run docker ps

Share Button
Read More
| by Scott Kilroy

Docker installation documentation

Docker installation information can be found at http://docs.docker.com/engine/installation/

Share Button
Read More
| by Scott Kilroy

Install a linux distro on docker

Unbuntu docker run –rm -ti ubuntu:latest /bin/bash Fedora docker run –rm -ti fedora:latest /bin/bash CentOS docker run –rm -ti centos:latest /bin/bash

Share Button
Read More
| by Scott Kilroy

Inspect your local docker images

docker inspect IMAGENAME

Share Button
Read More
| by Scott Kilroy

Get docker host ip

run echo $DOCKER_HOST

Share Button
Read More
| by Scott Kilroy

Export a docker container

Export a container (for use with amazon web services for example) by running the following command: docker export CONTAINERNAME > NAME.tar for example docker export fsk-apache > fsk-apache.tar

Share Button
Read More
| by Scott Kilroy

Build a docker base image

See docker documentation http://docs.docker.com/engine/articles/baseimages/

Share Button
Read More
  • 1
  • 2