• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Archives for December 2019

MySQL – How to undo (rollback) a set of SQL statements

by admin

What is Conducting a Transaction? If you have a series of SQL statements that you want to run which involve adding, deleting, or changing data contained in InnoDB or BDB tables, but want to be sure that all SQL statements or transactions are completed successfully before committing them, there is a set of MySQL statements […]

Filed Under: mysql

lvremove failing to remove volume after using ‘shred’ command

by admin

The Problem When trying to delete volume group by using lvremove, vgremove, pvremove command after executing shred command for physical volume as shown below, fails repeatedly. # shred -vfz -n 3 /dev/sdd # sum -r /dev/sdd 28911 1073741824 When the lvremove command is executed, you will get an error saying that the volume group can […]

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux

How to Configure Network Namespaces in Docker Containers

by admin

This post tells how Docker uses network namespace to isolate resources. The following figure is the lab setup to help you understand the steps visually: 1. Create two network namespaces: ns1 and ns2. – Add two new naetwork namespaces: # ip netns add ns1 # ip netns add ns2 The above commands create network space […]

Filed Under: DevOps, Docker

How to change the default IP address of docker bridge

by admin

Question: what is the proper procedure to reconfigure the docker interface to use an address range (e.g., > 172.200) for the virtual interfaces it uses? You can reconfigure the default bridge network by providing the bip option along with the desired subnet in the daemon.json (default location at //cdn.thegeekdiary.com/etc/docker/daemon.json ) file as follows: # vi […]

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, DevOps, Docker, Linux

“su: Authentication failure” – in Docker

by admin

The Problem In some situations, a normal user within a Docker container cannot run ‘su’ command to switch user. When ‘su’ command is issued, the following error returns. $ su – Password: [entering correct password] su: Authentication failure The Solution The sticky permission may be missing in /usr/bin/su within the container. With root privilege, you […]

Filed Under: DevOps, Docker, Linux

How to Pause and Resume Docker Containers

by admin

Question: How to Pause and Resume running containers on docker host? This post will help to know about pausing and resuming any running containers on the Docker host. Let’s first start the docker container “memory_test” on the docker host. # docker start memory_test memory_test To stop the pause the docker container: # docker pause memory_test […]

Filed Under: DevOps, Docker

How to find docker storage device and its size (device mapper storage driver)

by admin

Question: How to find the running docker storage device when docker is using the device-mapper storage driver and then check the size of it? 1. Please run the “docker info” command to display docker system-wide information which contains the docker storage info. # docker info Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 0 […]

Filed Under: DevOps, Docker, Linux

Understanding “docker stats” Command Output

by admin

Question: How to monitor a running docker container performance metrics. For example, CPU,memory, I/O and network stats? The docker stats command can continuously report the basic CPU, memory, network and disk I/O metrics. For example: # docker stats a3f78cb32a8e CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS […]

Filed Under: DevOps, Docker

‘docker images’ command error – “Permission Denied”

by admin

The Problem A regular user is not able list images using docker images command. Following error can be observed. user01> docker images Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.27/images/json: dial unix /var/run/docker.sock: connect: permission denied The Solution User is not part of docker group and doesn’t […]

Filed Under: CentOS/RHEL 7, DevOps, Docker, Linux

Docker Basics – Expose ports, port binding and docker link

by admin

This post illustrates three methods to link Docker containers. Expose ports and port binding Expose ports This method is used for within the same network or the docker host. Containers on the same network can talk to each other over their exposed ports and you can expose the ports by one of the below methods. […]

Filed Under: DevOps, Docker

« Previous Page

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright