Docker Update Container

Hits: 106

Start the Container via Container ID

root@b5855cf66908:/ docker start -a -i b5855cf669087ced669bfde4c89175c7f6d062e0e3e31d357a823189e0058044

Modify your Image, i will only the rsync software install for auto deployment and i’am done.

root@b5855cf66908:/ apt-get install rsync
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libpopt0
Suggested packages:
  openssh-server
The following NEW pa...
root@b5855cf66908:/# exit

commit the changes to docker

d8devs@root:/ docker commit b5855cf669087ced669bfde4c89175c7f6d062e0e3e31d357a823189e0058044 customer-ubuntu

SSH Connection without Password

Hits: 202

    ~ ssh-copy-id yoursshusername@yourservername.com
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/c/Users/USER/.ssh/id_ed25519.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
sshyoursshusername@yourservername.com's password: <<---HERE IS YOUR SSH PASSWORD QUESTION ONE TIME -->

Number of key(s) added: 1

Now try logging into the machine, with:   "ssh 'yoursshusername@yourservername.com'"
and check to make sure that only the key(s) you wanted were added.
Continue reading “SSH Connection without Password”

ERROR: for db Cannot start service db:

Hits: 201

Error response from daemon: You cannot remove a running container 03bfa4d8781318d096d8bf91fbe5375c11912ce0f427e2059891cdad7ade25e0. Stop the container before attempting removal or force remove

ERROR: for db Cannot start service db: driver failed programming external connectivity on endpoint

Fix Method 1;

docker container ls
docker stop 

Fix Method 2;

docker rm $(docker ps -a -q)

Docker – LAMP Mariadb container fails to launch

Hits: 123

Here is the Log Information one of them:

xxx-xx-xx xx:xx:xx 3333333333 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
-xx-xx xx:xx:xx 3333333333 [ERROR] Plugin 'InnoDB' init function returned error.

For fixing set your volumes from mariadb with local driver.

version: '3'
services:
  php-apache:
    build:
      context: ./php-apache
    ports:
      - 80:80
    volumes:
      - ./www:/var/www/html
    links:
      - 'mariadb'

  mariadb:
    image: mariadb:10.1
    restart: always
    volumes:
      - mariadb:/var/lib/mysql
    environment:
      TZ: "Europe/Rome"
      MYSQL_ALLOW_EMPTY_PASSWORD: "no"
      MYSQL_ROOT_PASSWORD: "rootpwd"
      MYSQL_USER: 'testuser'
      MYSQL_PASSWORD: 'testpassword'
      MYSQL_DATABASE: 'testdb'

volumes:
  mariadb:
    driver: local